<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>5.00001325e-011</Y>
					<Z>5.00001325e-011</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="Camera" referent="RBX4">
			<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">RBX5</Ref>
				<token name="CameraType">5</token>
				<CoordinateFrame name="CoordinateFrame">
					<X>20.5272903</X>
					<Y>35.0739288</Y>
					<Z>33.9863968</Z>
					<R00>0.359946012</R00>
					<R01>-0.711474657</R01>
					<R02>0.603525281</R02>
					<R10>4.52256543e-008</R10>
					<R11>0.646883845</R11>
					<R12>0.762588561</R12>
					<R20>-0.932973146</R20>
					<R21>-0.274490684</R21>
					<R22>0.23284328</R22>
				</CoordinateFrame>
				<CoordinateFrame name="Focus">
					<X>-3.41624331</X>
					<Y>4.8199091</Y>
					<Z>24.7488575</Z>
					<R00>0.0691260546</R00>
					<R01>0</R01>
					<R02>0.997607946</R02>
					<R10>0</R10>
					<R11>1</R11>
					<R12>0</R12>
					<R20>-0.997607946</R20>
					<R21>0</R21>
					<R22>0.0691260546</R22>
				</CoordinateFrame>
				<string name="Name">Instance</string>
				<bool name="archivable">true</bool>
			</Properties>
		</Item>
		<Item class="Model" referent="RBX6">
			<Properties>
				<token name="Controller">0</token>
				<bool name="ControllerFlagShown">true</bool>
				<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">Fox</string>
				<Ref name="PrimaryPart">RBX7</Ref>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Part" referent="RBX8">
				<Properties>
					<bool name="Anchored">false</bool>
					<float name="BackParamA">-0.5</float>
					<float name="BackParamB">0.5</float>
					<token name="BackSurface">2</token>
					<token name="BackSurfaceInput">0</token>
					<float name="BottomParamA">-0.5</float>
					<float name="BottomParamB">0.5</float>
					<token name="BottomSurface">2</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">105</int>
					<CoordinateFrame name="CFrame">
						<X>-4.43119049</X>
						<Y>5.69563246</Y>
						<Z>19.0931683</Z>
						<R00>2.58094715e-005</R00>
						<R01>-3.0869918e-021</R01>
						<R02>-1</R02>
						<R10>-4.05968289e-021</R10>
						<R11>1</R11>
						<R12>-3.08709641e-021</R12>
						<R20>1</R20>
						<R21>4.05976286e-021</R21>
						<R22>2.58094715e-005</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">false</bool>
					<string name="Name">Smooth Block Model</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0</float>
					<Vector3 name="Velocity">
						<X>0</X>
						<Y>-1</Y>
						<Z>0</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>0.800000012</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX9">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX10">
				<Properties>
					<bool name="Anchored">false</bool>
					<float name="BackParamA">-0.5</float>
					<float name="BackParamB">0.5</float>
					<token name="BackSurface">2</token>
					<token name="BackSurfaceInput">0</token>
					<float name="BottomParamA">-0.5</float>
					<float name="BottomParamB">0.5</float>
					<token name="BottomSurface">2</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">105</int>
					<CoordinateFrame name="CFrame">
						<X>-3.43119049</X>
						<Y>5.69563246</Y>
						<Z>19.0931416</Z>
						<R00>-2.58094715e-005</R00>
						<R01>-3.0869918e-021</R01>
						<R02>1</R02>
						<R10>4.05968289e-021</R10>
						<R11>1</R11>
						<R12>3.08709641e-021</R12>
						<R20>-1</R20>
						<R21>4.05976286e-021</R21>
						<R22>-2.58094715e-005</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">false</bool>
					<string name="Name">Smooth Block Model</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0</float>
					<Vector3 name="Velocity">
						<X>0</X>
						<Y>-1</Y>
						<Z>0</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>0.800000012</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX11">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Model" referent="RBX12">
				<Properties>
					<token name="Controller">7</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Fox</string>
					<Ref name="PrimaryPart">RBX7</Ref>
					<bool name="archivable">true</bool>
				</Properties>
				<Item class="Part" referent="RBX7">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">105</int>
						<CoordinateFrame name="CFrame">
							<X>-3.93119049</X>
							<Y>4.79563236</Y>
							<Z>19.0931549</Z>
							<R00>1</R00>
							<R01>-3.0869918e-021</R01>
							<R02>2.58094715e-005</R02>
							<R10>3.08709641e-021</R10>
							<R11>1</R11>
							<R12>-4.05968289e-021</R12>
							<R20>-2.58094715e-005</R20>
							<R21>4.05976286e-021</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<bool name="CanCollide">false</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">0</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">false</bool>
						<string name="Name">Head</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">0</token>
						<token name="TopSurfaceInput">0</token>
						<float name="Transparency">0</float>
						<Vector3 name="Velocity">
							<X>0</X>
							<Y>-1</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
					</Properties>
					<Item class="SpecialMesh" referent="RBX13">
						<Properties>
							<Content name="MeshId"><null></null></Content>
							<token name="MeshType">0</token>
							<string name="Name">Mesh</string>
							<Vector3 name="Scale">
								<X>1.25</X>
								<Y>1.25</Y>
								<Z>1.25</Z>
							</Vector3>
							<Content name="TextureId"><null></null></Content>
							<Vector3 name="VertexColor">
								<X>1</X>
								<Y>1</Y>
								<Z>1</Z>
							</Vector3>
							<bool name="archivable">true</bool>
						</Properties>
					</Item>
					<Item class="Decal" referent="RBX14">
						<Properties>
							<token name="Face">5</token>
							<string name="Name">face</string>
							<float name="Shiny">20</float>
							<float name="Specular">0</float>
							<Content name="Texture"><binary>iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAK3RFWHRDcmVhdGlvbiBUaW1l
AFR1ZSA0IE9jdCAyMDA1IDExOjExOjQ4IC0wODAwk+5fZwAAAAd0SU1FB9UMAhUYB+dMbtcA
AAAJcEhZcwAAHsEAAB7BAcNpVFMAAAAEZ0FNQQAAsY8L/GEFAAAE7klEQVR42u3cV4gdVRzH
8b8tUaPR2GJ3DXYx2MGGEVER9MWGBV9E8El8URDBXlERfPHFF0EEO4oiKoqYJ8WGDQULEWvs
NVHXZP39+N9hr9e5d7O7kz23fD/wA80umZNzzpw5M3PORAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAMPCWKa8qPyjPK8cqG5Uu1KjaQDlOuVP5UPlOeUm5WlnS+nlTtlVuUH5S/lHW
KOPK18ptyvalK2MULY1seDfERCtrlT+VJ5SxBo91bmRjr+04ljvCSuUWZV7pChkliyLP+Iku
+Uu5vMHjvRD/bfz2uBN8qhxWulJGyXnRvfGrvNbg8b7vcRx3jF+VC0tXynRsWLoAszTW0O+s
q4mGfqdvDHoH+CZ6V7h/trLB470ek2d853GqY71fulJGyc6R192667L/bLVyTYPHO1P5POon
gV9F3nlsUrpSRs0Jygfx/07g//c9+pIGj7W1cqXyS2Sjt98BuKMtKl0Zo2qZ8mbk/fnvyrfK
y8qC9XS8I5VHlDeU+yJn/gP5IKjJhySlbaEcrixUVkRei9eULhQAAAAAAAAAAABGh1++9dVb
w74qzBBzw+8WuXbhqMhFIz9GLi3HkPOyu2OUp5XfIheReAHL+aULNigOUu5RHlIuVrYqXaBp
2ld5O/Jsr1YteZ3CJ6ULNggWR670ceVVFedVOCeVLtg68OX1iMhdSp3L1ao1hJjCzZE7fDor
8F3lFGXj0gXswo1/kfJWTHbe9nix6o2lCzkIbo3sAHW7cL5QLlM2K13IDh617orJ631n5/W/
525l19IFHQQ7KM9EnjF1u3H8509GLgrdtGA5PcvfTjkncsh3ueqGfS8pvzbYRDotB0ROAr0t
y5VYNxp8rFzX+t35c1w+rzw+Ubk/crl43R4Fl/G9yMsC+wZmwJXsfYBe6dttX543gn6k3K7s
P0flOlC5N3KHUvssvz1/K48qBweNPyseZveOrHCPBt12A7khPMO+Sdkvmt8b4BFmTLkickiv
NojUnfVfKtcrm5euvGGypXKBsjzyrO+2W9cN4LuFOyJvGxc2cGx/i+Aq5ZUpju1O+JxyWpSd
mwwtjwbe8vVg9N6u7fjDEf6GwGPK0TGzzTBjkV8g8VxjddTP7qt49u+7l8UzPNacV+Sgctn9
yZazlLMjnxhuE/XvN6qz0lvHPBnzTN0PmD6L7ByrIq/V/j1/4cNDtu9A9ol8jHuysld0v+X0
aOPtaN49/IDybOSEsO8NcgeouMH2UI6P3L3rly3dHhdXlwbfi/tljBvNncBntidyPqt95u4Z
2eC7RG74nN+qq7r6cufx5ehh5cXI+QcveQpw4/jhyiWRDfJHTH15qOIGG2+l+vhT+8/r/g53
Ip/xlyq7B29W+4bPVg/dbhhvD/dZXvf8YCZxZ3DH8uTSXwtbGnP/3KFRw3AJ6MZnpIdyf8Pv
dOUQZcfoPZzXqS4bHh38GtfXdz999FxiVel/5GwNcwdo51sxTxJPVc6InDN4QjevRx1UD3E8
q39HeTzy1m5FDNE1flQ6QDvP8A+NnDR6CN8p8hmBHxj57aLP6p8j7w58p/BU5Nk+Xrrg68Mo
doB27gy+lVzQ+m9fNjy58+fe3AmqN3oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AABA8/4FruSQaL7NHwYAAAAASUVORK5CYII=</binary></Content>
							<bool name="archivable">true</bool>
						</Properties>
					</Item>
				</Item>
				<Item class="Part" referent="RBX15">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">141</int>
						<CoordinateFrame name="CFrame">
							<X>-3.93119049</X>
							<Y>3.29563212</Y>
							<Z>19.0931549</Z>
							<R00>1</R00>
							<R01>-3.0869918e-021</R01>
							<R02>2.58094715e-005</R02>
							<R10>3.08709641e-021</R10>
							<R11>1</R11>
							<R12>-4.05968289e-021</R12>
							<R20>-2.58094715e-005</R20>
							<R21>4.05976286e-021</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<bool name="CanCollide">false</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">0</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</float>
						<float name="LeftParamB">0</float>
						<token name="LeftSurface">2</token>
						<token name="LeftSurfaceInput">0</token>
						<bool name="Locked">false</bool>
						<string name="Name">Torso</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">0</float>
						<float name="RightParamB">0</float>
						<token name="RightSurface">2</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>-1</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>2</Y>
							<Z>1</Z>
						</Vector3>
					</Properties>
					<Item class="Decal" referent="RBX16">
						<Properties>
							<token name="Face">5</token>
							<string name="Name">roblox</string>
							<float name="Shiny">20</float>
							<float name="Specular">0</float>
							<Content name="Texture"><binary>iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAK3RFWHRDcmVhdGlvbiBUaW1l
AFR1ZSA0IE9jdCAyMDA1IDEyOjA4OjU2IC0wODAwjyq8YAAAAAd0SU1FB9UKBBMOFj/CLTwA
AAAJcEhZcwAAHsIAAB7CAW7QdT4AAAAEZ0FNQQAAsY8L/GEFAAAYfklEQVR42u3dCXxU1b0H
8N+dfTKTZLKRPWxhE0UUQVllrSDu2LovrQjPSi2tW6346mtdWhG1reKG9VVFrX70U1d8FhG0
LCqoqICyJkACJCRkkpnMPvedc2cymSSzhKWl4O/7+QwzmTn33nPv3HPO/5x75gIQERERERER
ERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERER
EREREREREREREREREREREREREREREREREREdX5SDSbxzzs9U75NPAIHA0c53WrqBA1Ewfz6y
zjkHYbcbe267Fa0LHz/a2Tpqsh955OeFc+f+Kf69qkmTWvwffGBPtkz/gzw/6NijO9oZIKKj
p1s1vOv11wy1F81wiZdm+bcqF9QdwbojHO763uGsP259+unTzwu9996TCIWKoYjdVY5Qo6aq
kUfnt8X6lc7bSJL2sPazm8dMFenachPfom85+eRl6vr1E7osG5dXRgDHv259wVUjRy7zr16t
nSwhmw2GVavgGDTwyORAnGsH7PZYt8LTpxLlb/4dof79Dn2nGhvh/tlN8L36avtmdHrkOJug
mE1HJNvh5ma4z78AwZUrY+8Fsx3Ir9vbpQJQfT64LpqB4D/+0f5eaSnsr70G4ylDu1YY3eCe
dxf8oovTVlgbX1iMvj+6uGu6d96Ff8YMrcLIeeRhR8HcXzj3PbPoTOd1Mz+Uh0oufUCk6Ttl
UiRf7lY05eVp6VkBHP+69QVvjjT68OsNaK6uwaDSHkc0Ew1z5iD82GPw6I3Y9MEqnHXmaYe9
zrDfj/3iRFZcLi3zX//qbky6/zcplwlC7d7Ko7yr18AzapT2utVkgXf5P9F35KkJ06p796Gp
pEQrsHV2B/QbNqB/RTHCB7PBTpqvuRah556DV7yu/exrnHXaiWgQ+9B5L7yzZsPz9NMwDh26
unjhYxN3jjvzAIJBi/zsk+kzMO3NV6BviwB8XtRbMwCDwdc/ELAc9hdB/9EMB5P4yx7lOCs3
K2WaLd9uSb8iGWUaDKis7AWdbP127dLeDouT0KA7Mo2O6vHEoooWgxl5E8YnTysK5e7t1Wht
9aZdb2HvctjtGdprpaGhfb9LemFEn4qky/nlPkZb66qhwzEp13HY+2gZMwZuUQEYxeutr76G
iacMEn2ert0A46xZ8Ih0wW3b+u+64MIXRHdILoJmWxb6z/1Z5DuIav7VHVo+zcOG3YE1a47I
d0H/udJWAP5f/1qpuu8+7fU+ezbyrBY4U6RvbDiQfqviBFONcaG4CKc14kTUHaEKQJzkUKL9
5ICIXDJ690qZvKXJiRanK+1qc8uKY68Vb3uF0ZjlQKYo1KEky4VbWmKvncWlcGRY0XqYu2jo
2VN71ovHgY3fIpwkgNGfNky26FBbWvJgNs9oq4j8JjMKR57eoQvi/+AD7dnx+/uXYfwE0PEt
bQVg3LEj9rr6hJPTrnDAmNO7teGarBzsr61BD5sV/u82axmx+UX4ef0svDtvHsr69TnknTIH
fMhf8PtYBOC2Z6LckZk0fbjpAApPG4qSbqz740efwbQbfxxZrqYm9r6+rAyZRiOaknQjdFVV
7ce0uARGraKLpA2Liuq7NZ/DWVefdLtBoxknjTsd2Zm22Htq3b7Y66nvvIpVX92JkaeeCFeC
PJhuvQX+u/8H2L9f+zskCn3dG+9ikK09yvc++ijUr7+GeerU/80eP2H9IX8BdMxI3wW4//5c
vPSSdkqZ+/RKm7y7MwR8op/psJgjmWjYH3t/wqZ10F9xYdKWtLvi+9bN9iwUZNmTJxYFL9xp
mUS8oiLJOXFw+zailaPWfhaVpDyY4Wg3R6YJZ2drrXbb9jy/vBlFf/wjytNsf/FlszHzhYUi
yo+02IGq6thn2WoI7/3Xz3HGP5dAMRm7VAG2O++MVABRn//0l5g6Zljsb7W+Hi033QTFbt9X
seipn6CsAnT8S1sBOHdW95fPsmfZo8+ht8od5ObCeeNNMLX1V/3+9s9EK6obNgy6nJxDW3dr
K4Lr1kF1tYfz4bw82M0muJMsEmhsTLlKJT8fuquugkNEJsW5cfmKFmpZmNWKcvhSrCO0ZWvs
taOsqOP2lyyJPKfbtz21CIloQa/Ta38G6ztGDBd9tgzLVqzBpCnjukYBhvaveuuAkzDuwXs7
9P0bhgyRXbNQ3pIlw5WyioMbDaVjVtoKINjQoI36yVPFkJGRspVU1TTnjSjUSu/eMJw0BAWD
BnT5OKzXIzRhIjJkn9VmwyHx+bTtBN56SxsHkEImc+plvIkH/1SrFRCVnlFWSCcPgc5o7Jhf
OdCISCCvs6TbRiStPH56U6dLkaFuxjudLmGq7o5VmvyOmtd/jdDE0QkHAyG2GxTdIsOoke2j
/oL/q6+gimOg5OR8Y9DrD3dogo4haSsAT+0ebaRJtjm2wh6HftlKnHBK30oYZ16HjJnX48QE
J2jQbIHvnvtQMvzUQ9hAO/+WzXC+/74WDWjrzUoz4u5MMqwpWn710stg/cVc6G0ZXfN7IDLg
KSsAU07qbeiaImnl8bNmd7qSEh8BpVqH7DrEHTe1UwQgv8zaF15C4MbroFjNXboBiljef6AJ
GbfeAqupvTJzLX4RaGqC4fLLX8kaNaoB9L2RdhpaeN06rTSGRPvSq29ZyjA30ey0cE4ulMsv
R+6XXyL/s0+RPXs2jPrEm/3kqutx8mEWfsnUrz9MM2fGdtBdVJwyfTBuMC2mb19kbN6MvHm/
Tlj41WAQ4d2RQUAZumcWF4rn5BFQKFpYZVsvK4sOMYcr/dUHyS72Qx8/aSjaBYl3wfqVeP31
JUjUgcpYsABbH1qIfgP7xt7zbd2K0IPzoRQWbum1ePH9h33w6ZiSNgIIbdqkTflrFSder4Kc
1BGAKBQakVZ/6qmitZ+JjGuugV6G0km0VShySdcpw7t8LrfnbPWJvm+CMFl0OUTICkdG1/kq
pgwrZLsqi6RFFM5U+VbiRuiDontive02WC+9BHqDvmt+RbjetKsG9scehbJ7V3QfFGQXFyGV
cHPkMqCsLGQEEIqrLDqH8onI9lonIpIOEkQucj+V229Hw3lToM+0ddhv01VX4sz4tOKYNo84
XXvR89lnRymKwr7/90zaCiC8bZvWWXfr9CjIzITsySaLAmSr6DOaYHz2L7COHYuQwwG3uWvf
2O8PoXHPXug+W4vARysgT2tV0SFTKxiiHxuX1vPGG9j758eh+BJvtcWWCfMDD6D/kI5TkwP7
6rRnuT5fSUmX9XbId02t9vm+W+9A5ZwbANFCh+R4RPRzryhF3poatK5YCeXdt2H77BP46+ti
yzebMpBls2kVTqJgXg2IaCHaXXAZTDCJiCIQn7at4kzDXFLcYf2hJMdk+N4dWPL6e5hyzYyk
MYncvuemn4tKpAnm6dNvNo4enXoklI5LaSsAUagjPwCSrboI3WWhSHZSqdF0KC6BrrRUK0Rq
gjRyHYFgCDoR+gbarn1r69fH0rQJudwIigKq8yUeqPPbs0UJ7xp8q/EDawZjl/V2INOK7Ydy
87Tr+eFOk5HCYsmQyG+wpQW6vXtFy787Nqinfa7TRQfVUkxiinaPZEXX/kOqg5v0pDMaurWc
NRSEWxw3NUVa+Vm4rk7Ll65Xr3olO/twZiXTMSp9BdDUpHUnm+wOmEUFIK/YJ4sAFNGSLT9x
BG6YOAEdJgSLs62lsQm+L7+E+533YF2xAgUb18MYV4iCegOMZaXapbq2YWhdQwOMV16BVFek
y8TjnWeew4Dh8ztcRtPX79dO/YD411FRoc1eTDa8bd63D1WOHii4/Ap4Rdn0xH0WWrYcLffc
D8fqj5Hn9SRcfn+mA4WOLBFhqGLZBAVufwMM0TDfabKi3GLV0rUF8AZ5dcGXcnQF++1ZKB92
ElrEcm0lVe/3JyzeTqMZFaOHi/woKX/doAZCWtdCDQTSTUGg41T6iUDRlqtaVADy92LNqc4o
VysOiMIgk/ji0qnbqgDRp85b9ymS9ZSDovU3ZWdqy7UVBaXFhQyk5xL971a140SezJrd2t9e
owVZ+XnwqMkrLpNo0bO8bqzduAPnlBehKf7DkWfA8ueHEFy7DoYPlgLLl3cZfGvJykam1QKX
qiTchr66GobocWzMykHPDKs4jqo2diB5P/0MxuqqlPvoG3IK8spLtf1oY0tw9UDGUBseWojB
QwbB2+m7qq+qQV5FMXRtEcgLz8PoeBPeRYt+q86du0B55JHu9UXouNHtHwPtKSjRCpQ7RfTp
21mDUV+uxkfba1DcuxQH2tJW9gLWrETL6jUwPf887M8/1+Xau8dogkMUpGaxTNuQmEGE/ekq
AHnGmop6aMuEo9tTRbhuFa2uPM09JhPshflaXhJ1ImT/3FZfjx4eFyovuwDLpkxF89nTUXLG
CJQM6IWgKNgYPFh7NF9ztYhyQlA3bUL25ZfB/M032jq8ubkI2SxoURJXMsq3m9E2TOkX++k3
6CEnJjuV6Bcw5KTII434+EPx+WEVx7Dz9ZTlk89Fn+uvhEe790HHzwpGn44Pn3sFIyaNinxm
y4D1+lnQPb7QtKu6+l7xzu3dPR/o+NDtu1G0ZjsQUCOFKJDgIdsi/Z4aODxu+BcuxM5tuyAn
38bSi1bH16sX3BddiAN3zkPzVVcj2Kf9cpQWAVgM2npi6+3G4Jjs6YfsmV2WU1oj1YjXZIHR
bNIii4T59ooi6/FoUYtDVAI9v1qHylcWI+uRh7DrpddQu3Y9XPVNCIZUrbLx6RQEigrhmzKl
Pe+OHG1WnSfJNpSW9uHHHJcTu/Y3a6F3jogCbDj4h1U8DMuWaV2ueG5rBvQXX6iNvSTKh7HZ
ifCS9+APhWLvNZ57LlTx3QQ++WSsesMNvEPU90y3IwCfaJ1lYZMFzZjgc1mArPX7kOX3oHbx
YuyffgEqK8tR25Zehp3lZdrDe8YoGEUobZGDadu3acuH9AZYRQUgT8q201rpxgw5VfZzRQUQ
iGvt1FA49ks9v9msVQCtceuNF/YHYhNxsnytcHy3AUHxaDbbsLHZC/2UEAxZuTDmZGtpZEWm
LyiAf8xY4OGHI3kXx0bOz/eriQcarXGX+RytLdjc5MZpIr+OaLfkYK+9yaPiXb26y/HxWkQF
MG0qVBFhJNpXk9sF9aOPEFTVWHDgmzwZefKKR23tCHEcZAXAwcDvkZQVQKC29uMdJSXaCXpg
8DC4xFnTmuJszRF9XXliDdpbjfpzpuCNu+7BxbfPwdrOCeVMuPPPQ8O558Dx1CKU/3Q2fKKv
XmC1olGsv21wzOFsRjp+oxlKjgPOuHxZ5E9vo4NqXpsNVrsdstfuT5D3jLq9HS7DybNflgKH
z42zX3oafvFoyshCVc++sL3+GgoG9NYqtZDbq12+1CYalZRpy8rpPMEE28jati32uszrwtbL
foQn5/038vr1OaRb7thEAR71+65zdj5a+Cwqy4o6HIs2mdE7F12wdgVeXLoKJ04dF6l4DAY0
iIgs/+7f6Hds3/5X8c4Vh5AlOkalrACaP/98jHyWLXhWSb7oAqjwpZi16t24BcVPPTXHP3/+
rIItW4ZMnfcLLNr4HWY8MR/bdXp4lc6bU7D34hmoEBVAY6YDlXoFTn9QhOt6qKJkBPelv7dA
q8UKS74IyeNKd0i2uNHfJXjyCmAy69HiS1xzmVLcvyAcPUD5rSJk37oJm51uZImugE80vDnR
gUCtABeWal0dd4IaJqQXlcT29p9UyxTjN38B/9UXad2eQ/rS1DB0nWZdvj/japReOA3eQNtW
Oho8fXps+5k3zYX3609F5iPb/+7Ou5B77z0Ifvjhpf5ly24wTZyYvual40LKCsC/Y7v2LE/y
zNJCuDziJPclbrPkBafsT1ehYMF9b5kqKp7e9eCDj2Lp0uuvfP4xvL9hA0qefwZ5PXtip79j
N9Ma/UFNi2iljWEVjV7Rfw1FtrF3xGgUnDEGmQ37Em7TKULzDdfeCFtRGdxx1/hyozffkGtp
zOuhNcvu1sT5tlbVxl439x+EQHFpwnRVpT1R1LsCDa2RcQ11527tfW1qb1EPNPvlNhJ0ocVb
u2fNQVAWtm5O+OmOvBVLY6/r8ovg/cMCeDw6Ue913E+dDRg6YSz0ze2zBs/b+gUe+OuHGH7J
5Fj6LQ8/gQFzrtNtu/mW18SfU7qVCTrmpawAWlet1p5lo+8or0SrX4E78aVw5Jh9sDTUw9S3
crdS2S+sqursnZde9oXvby8vnPb5h9g0YRxWPfUWzp58ElY741q+2kioLmf0ycarydV+ArsN
ufjo9Y8Td5JlCy+TKl2H9827I3Pr5cfuknKERLlLlG+LUbSi22q1MP7j6Rej8KXF+M6V/Kah
e7X5yqLbYFVh3ROpOGTu/dnF2kWNZMfGPe48VInHkTRx/EBYN3+nvX7rsTdQbM2XV2G7sC9+
DlmrV3Z4T8YOw3/7UzRP2wCdIbK/Oy77CfrNnQ39F59Pdi1dmm2fPNmZLg907OOoL9H3WMoK
ILxqlfYsxwC+rtYj3xKCKRC5hB//KFdUeJoio+mKomidU/nDkp5/e/lx67XXjhZttX9g3W6c
f8loPPHAIkzKCsWW9Ud/iOMJ6lHdqmJchgq9P279nq7b0x6iK+L1Kgk/t3zRfjNLd51L++FN
b33HNOaAiiIRPdhXvq9FCtUnDEO+YoysL9lDLJchuhMOEQnY1n+hrV+2nwcOuJBjVJEXTpJX
z5F/NAzThmfwpylXYvyEYfJmvl22G2j2Yuwts2PjIearr44dl8m1W7Hu2Rdjad1NwIonX9Q+
2ztr1vKjfWLSv0fKQei224HLf54Z/gPYnn0TZxaaYYnrOMibgKxpDGLUDwYjZ/uWhPeSr71r
Xqlr/oMbxZmWJefCP3PWJTjl4fmoN5fA+MQ9mPTAf8NpsWH+rx7HxB9fiQEZ6NKXTUde2vrW
FUZIFMxpPxoJXbS/vSsrDy//5hlcevV5sBna17nFrSK46EGMvvt2bQ+XDhwGy4uvYnDv3ikv
y21yqci/fSYGvPiX2HvvDR2DugUv4AdDK2A6Ujc1TcEjdi1/YA+YRZfrngtuQL97/4jpFQbE
b3qNCOBHjB0A+/b2Sdm9a2qMO3r1qkMgoE3v/ia3BKv/71voojcoyXS68MNx+doX2PebDSX6
Ewfv+ZfvDB1VKc/WLb/7naredVfs7/0mC/ZkF3ZIk6EG0bOpDoZgZCZ+sv9MYv+rr9oa77jj
E2zdqt1Uz2U0o8bRA/3374YSbaF8onLYbc9BqyXF/ftSqPA0Iae1RbvJJrKzYz+X9ej0Yr25
8Joj8woNohdc1uqE3d0cy6x8bjBaRJ4Kk67fKJYrd9ZrNy+NJ3PfIvrS1Y6iI/c/D6VgFjFN
//rIIKRO5HxDThGCho5jF33dDbC2uuK/DL/4bszON98Yue+881dGdxk7xbF2ZuZpCU5o2gN9
IHKZRzds2KrKdetG/8t3ho6qlGerr6FBrR4tzoFvv9X+ljcFCen0nVagwhCWn0DVnXDC6sqN
GxOeNKrPp2wdPLjUfNpp13pffvl3sp8QFOsyRpaNpJHviUpARgmHwqCGoBOViWnWLBTdfDN2
T5uG8Pbt2qBXqMN6Ve1SmhI3ISbZ/nXaC21Ov65TjKC25V1b9t/xn+mIfYy7P4I/wXblsYjf
P/s555xd8vbbS9TlH5qrbrn174G1a6dCO94KwtHLgcZwMJY+8/bb5hX/4YF7/w07Q0dRyqsA
Rnljzrjf88sf9+rDKS5lWa1J/2cNxWyWZWT3rh/+ULvllCyKpk43+ZAnn1EUTKiHNxlN53DA
2LMnlGhoK7el68Z60+5fsn2LPkzhw72X8aHpznZNY8fW4u23oYyf4KsaPz52vcCg/V+AXfdZ
n5ub/i4lRERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERE
RERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERE
RERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERE
RERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERE
RERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERE
RERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERE
REREREREREREREREREREREREREREREREREREREREREREREREREREREREx6v/B5qI37vMmLq3
AAAAAElFTkSuQmCC</binary></Content>
							<bool name="archivable">true</bool>
						</Properties>
					</Item>
				</Item>
				<Item class="Part" referent="RBX17">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">105</int>
						<CoordinateFrame name="CFrame">
							<X>-5.43119049</X>
							<Y>3.29563212</Y>
							<Z>19.0931931</Z>
							<R00>1</R00>
							<R01>-3.0869918e-021</R01>
							<R02>2.58094715e-005</R02>
							<R10>3.08709641e-021</R10>
							<R11>1</R11>
							<R12>-4.05968289e-021</R12>
							<R20>-2.58094715e-005</R20>
							<R21>4.05976286e-021</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<bool name="CanCollide">false</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">0</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">false</bool>
						<string name="Name">Left Arm</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>-1</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>1</X>
							<Y>2</Y>
							<Z>1</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX18">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">105</int>
						<CoordinateFrame name="CFrame">
							<X>-2.43119049</X>
							<Y>3.29563212</Y>
							<Z>19.0931168</Z>
							<R00>1</R00>
							<R01>-3.0869918e-021</R01>
							<R02>2.58094715e-005</R02>
							<R10>3.08709641e-021</R10>
							<R11>1</R11>
							<R12>-4.05968289e-021</R12>
							<R20>-2.58094715e-005</R20>
							<R21>4.05976286e-021</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<bool name="CanCollide">false</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">0</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">false</bool>
						<string name="Name">Right Arm</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>-1</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>1</X>
							<Y>2</Y>
							<Z>1</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX19">
					<Properties>
						<bool name="Anchored">false</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">208</int>
						<CoordinateFrame name="CFrame">
							<X>-4.43119049</X>
							<Y>1.29563212</Y>
							<Z>19.0931683</Z>
							<R00>1</R00>
							<R01>-3.0869918e-021</R01>
							<R02>2.58094715e-005</R02>
							<R10>3.08709641e-021</R10>
							<R11>1</R11>
							<R12>-4.05968289e-021</R12>
							<R20>-2.58094715e-005</R20>
							<R21>4.05976286e-021</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<bool name="CanCollide">false</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">0</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">false</bool>
						<string name="Name">Left Leg</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>-1</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>1</X>
							<Y>2</Y>
							<Z>1</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX20">
					<Properties>
						<bool name="Anchored">false</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">208</int>
						<CoordinateFrame name="CFrame">
							<X>-3.43119049</X>
							<Y>1.29563212</Y>
							<Z>19.0931416</Z>
							<R00>1</R00>
							<R01>-3.0869918e-021</R01>
							<R02>2.58094715e-005</R02>
							<R10>3.08709641e-021</R10>
							<R11>1</R11>
							<R12>-4.05968289e-021</R12>
							<R20>-2.58094715e-005</R20>
							<R21>4.05976286e-021</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<bool name="CanCollide">false</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">0</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">false</bool>
						<string name="Name">Right Leg</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>-1</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>1</X>
							<Y>2</Y>
							<Z>1</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Humanoid" referent="RBX21">
					<Properties>
						<float name="Health">100</float>
						<bool name="Jump">false</bool>
						<float name="MaxHealth">100</float>
						<string name="Name">Humanoid</string>
						<bool name="Sit">false</bool>
						<bool name="Strafe">false</bool>
						<Vector3 name="TargetPoint">
							<X>0</X>
							<Y>0</Y>
							<Z>0</Z>
						</Vector3>
						<Vector3 name="WalkDirection">
							<X>0</X>
							<Y>0</Y>
							<Z>0</Z>
						</Vector3>
						<float name="WalkRotationalVelocity">0</float>
						<Ref name="WalkToPart">null</Ref>
						<Vector3 name="WalkToPoint">
							<X>0</X>
							<Y>0</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
		</Item>
		<Item class="Model" referent="RBX22">
			<Properties>
				<token name="Controller">0</token>
				<bool name="ControllerFlagShown">true</bool>
				<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">AR starfox</string>
				<Ref name="PrimaryPart">RBX23</Ref>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Part" referent="RBX24">
				<Properties>
					<bool name="Anchored">true</bool>
					<float name="BackParamA">-0.5</float>
					<float name="BackParamB">0.5</float>
					<token name="BackSurface">2</token>
					<token name="BackSurfaceInput">0</token>
					<float name="BottomParamA">-0.5</float>
					<float name="BottomParamB">0.5</float>
					<token name="BottomSurface">2</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">23</int>
					<CoordinateFrame name="CFrame">
						<X>12.1999998</X>
						<Y>5.9000001</Y>
						<Z>17.5</Z>
						<R00>-0</R00>
						<R01>1</R01>
						<R02>-0</R02>
						<R10>-0</R10>
						<R11>0</R11>
						<R12>-1</R12>
						<R20>-1</R20>
						<R21>0</R21>
						<R22>-0</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">2</token>
					<token name="FrontSurfaceInput">0</token>
					<float name="LeftParamA">-0.5</float>
					<float name="LeftParamB">0.5</float>
					<token name="LeftSurface">2</token>
					<token name="LeftSurfaceInput">0</token>
					<bool name="Locked">false</bool>
					<string name="Name">Smooth Block Model</string>
					<float name="Reflectance">0.100000001</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">2</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX25">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Model" referent="RBX26">
				<Properties>
					<token name="Controller">0</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Model</string>
					<Ref name="PrimaryPart">RBX23</Ref>
					<bool name="archivable">true</bool>
				</Properties>
				<Item class="Model" referent="RBX27">
					<Properties>
						<token name="Controller">7</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">starfox</string>
						<Ref name="PrimaryPart">RBX23</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Part" referent="RBX23">
						<Properties>
							<bool name="Anchored">false</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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">23</int>
							<CoordinateFrame name="CFrame">
								<X>13</X>
								<Y>4.9000001</Y>
								<Z>17.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>
							<bool name="CanCollide">false</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">0</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">false</bool>
							<string name="Name">Head</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">0</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>2</X>
								<Y>1</Y>
								<Z>1</Z>
							</Vector3>
						</Properties>
						<Item class="SpecialMesh" referent="RBX28">
							<Properties>
								<Content name="MeshId"><null></null></Content>
								<token name="MeshType">0</token>
								<string name="Name">Mesh</string>
								<Vector3 name="Scale">
									<X>1.25</X>
									<Y>1.25</Y>
									<Z>1.25</Z>
								</Vector3>
								<Content name="TextureId"><null></null></Content>
								<Vector3 name="VertexColor">
									<X>1</X>
									<Y>1</Y>
									<Z>1</Z>
								</Vector3>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
						<Item class="Decal" referent="RBX29">
							<Properties>
								<token name="Face">5</token>
								<string name="Name">face</string>
								<float name="Shiny">20</float>
								<float name="Specular">0</float>
								<Content name="Texture"><hash>b0c3fd281c77535b29d7d191d47d580e</hash></Content>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
					</Item>
					<Item class="Part" referent="RBX30">
						<Properties>
							<bool name="Anchored">false</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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">23</int>
							<CoordinateFrame name="CFrame">
								<X>13</X>
								<Y>3.29341054</Y>
								<Z>17.5</Z>
								<R00>-1</R00>
								<R01>-3.89895661e-021</R01>
								<R02>-1.02173612e-022</R02>
								<R10>-3.89895661e-021</R10>
								<R11>1</R11>
								<R12>5.90749775e-021</R12>
								<R20>1.02173612e-022</R20>
								<R21>5.90749775e-021</R21>
								<R22>-1</R22>
							</CoordinateFrame>
							<bool name="CanCollide">false</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">0</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</float>
							<float name="LeftParamB">0</float>
							<token name="LeftSurface">2</token>
							<token name="LeftSurfaceInput">0</token>
							<bool name="Locked">false</bool>
							<string name="Name">Torso</string>
							<float name="Reflectance">0</float>
							<float name="RightParamA">0</float>
							<float name="RightParamB">0</float>
							<token name="RightSurface">2</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>-1</Y>
								<Z>0</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>2</X>
								<Y>2</Y>
								<Z>1</Z>
							</Vector3>
						</Properties>
						<Item class="Decal" referent="RBX31">
							<Properties>
								<token name="Face">5</token>
								<string name="Name">roblox</string>
								<float name="Shiny">20</float>
								<float name="Specular">0</float>
								<Content name="Texture"><hash>a7b5654da45eafbc96499a90f764de83</hash></Content>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
					</Item>
					<Item class="Part" referent="RBX32">
						<Properties>
							<bool name="Anchored">false</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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">23</int>
							<CoordinateFrame name="CFrame">
								<X>14.5</X>
								<Y>3.29341054</Y>
								<Z>17.5</Z>
								<R00>-1</R00>
								<R01>-3.89895661e-021</R01>
								<R02>-1.02173612e-022</R02>
								<R10>-3.89895661e-021</R10>
								<R11>1</R11>
								<R12>5.90749775e-021</R12>
								<R20>1.02173612e-022</R20>
								<R21>5.90749775e-021</R21>
								<R22>-1</R22>
							</CoordinateFrame>
							<bool name="CanCollide">false</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">0</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">false</bool>
							<string name="Name">Left Arm</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>-1</Y>
								<Z>0</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>1</X>
								<Y>2</Y>
								<Z>1</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX33">
						<Properties>
							<bool name="Anchored">false</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">2</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">23</int>
							<CoordinateFrame name="CFrame">
								<X>11.5</X>
								<Y>3.79341054</Y>
								<Z>18</Z>
								<R00>3.89895661e-021</R00>
								<R01>-1.02173612e-022</R01>
								<R02>1</R02>
								<R10>-1</R10>
								<R11>5.90749775e-021</R11>
								<R12>3.89895661e-021</R12>
								<R20>-5.90749775e-021</R20>
								<R21>-1</R21>
								<R22>-1.02173612e-022</R22>
							</CoordinateFrame>
							<bool name="CanCollide">false</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">0</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">false</bool>
							<string name="Name">Right Arm</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>-1</Y>
								<Z>0</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>1</X>
								<Y>2</Y>
								<Z>1</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX34">
						<Properties>
							<bool name="Anchored">false</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">23</int>
							<CoordinateFrame name="CFrame">
								<X>13.5</X>
								<Y>1.29341054</Y>
								<Z>17.5</Z>
								<R00>-1</R00>
								<R01>-3.89895661e-021</R01>
								<R02>-1.02173612e-022</R02>
								<R10>-3.89895661e-021</R10>
								<R11>1</R11>
								<R12>5.90749775e-021</R12>
								<R20>1.02173612e-022</R20>
								<R21>5.90749775e-021</R21>
								<R22>-1</R22>
							</CoordinateFrame>
							<bool name="CanCollide">false</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">0</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">false</bool>
							<string name="Name">Left Leg</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>-1</Y>
								<Z>0</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>1</X>
								<Y>2</Y>
								<Z>1</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX35">
						<Properties>
							<bool name="Anchored">false</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">23</int>
							<CoordinateFrame name="CFrame">
								<X>12.5</X>
								<Y>1.29341054</Y>
								<Z>17.5</Z>
								<R00>-1</R00>
								<R01>-3.89895661e-021</R01>
								<R02>-1.02173612e-022</R02>
								<R10>-3.89895661e-021</R10>
								<R11>1</R11>
								<R12>5.90749775e-021</R12>
								<R20>1.02173612e-022</R20>
								<R21>5.90749775e-021</R21>
								<R22>-1</R22>
							</CoordinateFrame>
							<bool name="CanCollide">false</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">0</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">false</bool>
							<string name="Name">Right Leg</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>-1</Y>
								<Z>0</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>1</X>
								<Y>2</Y>
								<Z>1</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Humanoid" referent="RBX36">
						<Properties>
							<float name="Health">100</float>
							<bool name="Jump">false</bool>
							<float name="MaxHealth">100</float>
							<string name="Name">Humanoid</string>
							<bool name="Sit">false</bool>
							<bool name="Strafe">false</bool>
							<Vector3 name="TargetPoint">
								<X>0</X>
								<Y>0</Y>
								<Z>0</Z>
							</Vector3>
							<Vector3 name="WalkDirection">
								<X>0</X>
								<Y>0</Y>
								<Z>0</Z>
							</Vector3>
							<float name="WalkRotationalVelocity">0</float>
							<Ref name="WalkToPart">null</Ref>
							<Vector3 name="WalkToPoint">
								<X>0</X>
								<Y>0</Y>
								<Z>0</Z>
							</Vector3>
							<bool name="archivable">true</bool>
						</Properties>
					</Item>
				</Item>
			</Item>
			<Item class="Part" referent="RBX37">
				<Properties>
					<bool name="Anchored">true</bool>
					<float name="BackParamA">-0.5</float>
					<float name="BackParamB">0.5</float>
					<token name="BackSurface">2</token>
					<token name="BackSurfaceInput">0</token>
					<float name="BottomParamA">-0.5</float>
					<float name="BottomParamB">0.5</float>
					<token name="BottomSurface">2</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">23</int>
					<CoordinateFrame name="CFrame">
						<X>13.8000002</X>
						<Y>5.9000001</Y>
						<Z>17.5</Z>
						<R00>0</R00>
						<R01>-1</R01>
						<R02>-0</R02>
						<R10>0</R10>
						<R11>-0</R11>
						<R12>-1</R12>
						<R20>1</R20>
						<R21>-0</R21>
						<R22>-0</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">2</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">false</bool>
					<string name="Name">Smooth Block Model</string>
					<float name="Reflectance">0.100000001</float>
					<float name="RightParamA">-0.5</float>
					<float name="RightParamB">0.5</float>
					<token name="RightSurface">2</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">2</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX38">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
		</Item>
		<Item class="Model" referent="RBX39">
			<Properties>
				<token name="Controller">7</token>
				<bool name="ControllerFlagShown">true</bool>
				<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">Falco Lombardi</string>
				<Ref name="PrimaryPart">RBX40</Ref>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Part" referent="RBX40">
				<Properties>
					<bool name="Anchored">false</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">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">23</int>
					<CoordinateFrame name="CFrame">
						<X>23</X>
						<Y>4.79566002</Y>
						<Z>8.5</Z>
						<R00>-1</R00>
						<R01>-3.84341232e-021</R01>
						<R02>-2.02090033e-022</R02>
						<R10>-3.84341232e-021</R10>
						<R11>1</R11>
						<R12>5.51610723e-021</R12>
						<R20>2.02090033e-022</R20>
						<R21>5.51610723e-021</R21>
						<R22>-1</R22>
					</CoordinateFrame>
					<bool name="CanCollide">false</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">0</token>
					<float name="Friction">0.300000012</float>
					<float name="FrontParamA">0</float>
					<float name="FrontParamB">0</float>
					<token name="FrontSurface">6</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">false</bool>
					<string name="Name">Head</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0</float>
					<Vector3 name="Velocity">
						<X>0</X>
						<Y>-1</Y>
						<Z>0</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>2</X>
						<Y>1</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX41">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1.25</X>
							<Y>1.25</Y>
							<Z>1.25</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Decal" referent="RBX42">
					<Properties>
						<token name="Face">5</token>
						<string name="Name">face</string>
						<float name="Shiny">20</float>
						<float name="Specular">0</float>
						<Content name="Texture"><hash>b0c3fd281c77535b29d7d191d47d580e</hash></Content>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX43">
				<Properties>
					<bool name="Anchored">false</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">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">1</int>
					<CoordinateFrame name="CFrame">
						<X>23</X>
						<Y>3.29566026</Y>
						<Z>8.5</Z>
						<R00>-1</R00>
						<R01>-3.84341232e-021</R01>
						<R02>-2.02090033e-022</R02>
						<R10>-3.84341232e-021</R10>
						<R11>1</R11>
						<R12>5.51610723e-021</R12>
						<R20>2.02090033e-022</R20>
						<R21>5.51610723e-021</R21>
						<R22>-1</R22>
					</CoordinateFrame>
					<bool name="CanCollide">false</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">0</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</float>
					<float name="LeftParamB">0</float>
					<token name="LeftSurface">2</token>
					<token name="LeftSurfaceInput">0</token>
					<bool name="Locked">false</bool>
					<string name="Name">Torso</string>
					<float name="Reflectance">0</float>
					<float name="RightParamA">0</float>
					<float name="RightParamB">0</float>
					<token name="RightSurface">2</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>-1</Y>
						<Z>0</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>2</X>
						<Y>2</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="Decal" referent="RBX44">
					<Properties>
						<token name="Face">5</token>
						<string name="Name">roblox</string>
						<float name="Shiny">20</float>
						<float name="Specular">0</float>
						<Content name="Texture"><hash>a7b5654da45eafbc96499a90f764de83</hash></Content>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX45">
				<Properties>
					<bool name="Anchored">false</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">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">1</int>
					<CoordinateFrame name="CFrame">
						<X>24.5</X>
						<Y>3.29566026</Y>
						<Z>8.5</Z>
						<R00>-1</R00>
						<R01>-3.84341232e-021</R01>
						<R02>-2.02090033e-022</R02>
						<R10>-3.84341232e-021</R10>
						<R11>1</R11>
						<R12>5.51610723e-021</R12>
						<R20>2.02090033e-022</R20>
						<R21>5.51610723e-021</R21>
						<R22>-1</R22>
					</CoordinateFrame>
					<bool name="CanCollide">false</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">0</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">false</bool>
					<string name="Name">Left Arm</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>-1</Y>
						<Z>0</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>2</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
			</Item>
			<Item class="Part" referent="RBX46">
				<Properties>
					<bool name="Anchored">false</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">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">1</int>
					<CoordinateFrame name="CFrame">
						<X>21.5</X>
						<Y>3.29566026</Y>
						<Z>8.5</Z>
						<R00>-1</R00>
						<R01>-3.84341232e-021</R01>
						<R02>-2.02090033e-022</R02>
						<R10>-3.84341232e-021</R10>
						<R11>1</R11>
						<R12>5.51610723e-021</R12>
						<R20>2.02090033e-022</R20>
						<R21>5.51610723e-021</R21>
						<R22>-1</R22>
					</CoordinateFrame>
					<bool name="CanCollide">false</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">0</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">false</bool>
					<string name="Name">Right Arm</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>-1</Y>
						<Z>0</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>2</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
			</Item>
			<Item class="Part" referent="RBX47">
				<Properties>
					<bool name="Anchored">false</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">192</int>
					<CoordinateFrame name="CFrame">
						<X>23.5</X>
						<Y>1.29566026</Y>
						<Z>8.5</Z>
						<R00>-1</R00>
						<R01>-3.84341232e-021</R01>
						<R02>-2.02090033e-022</R02>
						<R10>-3.84341232e-021</R10>
						<R11>1</R11>
						<R12>5.51610723e-021</R12>
						<R20>2.02090033e-022</R20>
						<R21>5.51610723e-021</R21>
						<R22>-1</R22>
					</CoordinateFrame>
					<bool name="CanCollide">false</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">0</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">false</bool>
					<string name="Name">Left Leg</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>-1</Y>
						<Z>0</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>2</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
			</Item>
			<Item class="Part" referent="RBX48">
				<Properties>
					<bool name="Anchored">false</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">192</int>
					<CoordinateFrame name="CFrame">
						<X>22.5</X>
						<Y>1.29566026</Y>
						<Z>8.5</Z>
						<R00>-1</R00>
						<R01>-3.84341232e-021</R01>
						<R02>-2.02090033e-022</R02>
						<R10>-3.84341232e-021</R10>
						<R11>1</R11>
						<R12>5.51610723e-021</R12>
						<R20>2.02090033e-022</R20>
						<R21>5.51610723e-021</R21>
						<R22>-1</R22>
					</CoordinateFrame>
					<bool name="CanCollide">false</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">0</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">false</bool>
					<string name="Name">Right Leg</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>-1</Y>
						<Z>0</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>2</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
			</Item>
			<Item class="Humanoid" referent="RBX49">
				<Properties>
					<float name="Health">100</float>
					<bool name="Jump">false</bool>
					<float name="MaxHealth">100</float>
					<string name="Name">Humanoid</string>
					<bool name="Sit">false</bool>
					<bool name="Strafe">false</bool>
					<Vector3 name="TargetPoint">
						<X>0</X>
						<Y>0</Y>
						<Z>0</Z>
					</Vector3>
					<Vector3 name="WalkDirection">
						<X>0</X>
						<Y>0</Y>
						<Z>0</Z>
					</Vector3>
					<float name="WalkRotationalVelocity">0</float>
					<Ref name="WalkToPart">null</Ref>
					<Vector3 name="WalkToPoint">
						<X>0</X>
						<Y>0</Y>
						<Z>0</Z>
					</Vector3>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
		</Item>
		<Item class="Model" referent="RBX50">
			<Properties>
				<token name="Controller">0</token>
				<bool name="ControllerFlagShown">true</bool>
				<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">Model</string>
				<Ref name="PrimaryPart">null</Ref>
				<bool name="archivable">true</bool>
			</Properties>
		</Item>
		<Item class="Model" referent="RBX51">
			<Properties>
				<token name="Controller">0</token>
				<bool name="ControllerFlagShown">true</bool>
				<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">Model</string>
				<Ref name="PrimaryPart">null</Ref>
				<bool name="archivable">true</bool>
			</Properties>
		</Item>
		<Item class="Tool" referent="RBX52">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">0</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<X>0</X>
					<Y>-0.200000003</Y>
					<Z>-0.5</Z>
					<R00>1</R00>
					<R01>0</R01>
					<R02>0</R02>
					<R10>0</R10>
					<R11>1</R11>
					<R12>-6.00000021e-005</R12>
					<R20>-0</R20>
					<R21>6.00000021e-005</R21>
					<R22>1</R22>
				</CoordinateFrame>
				<string name="Name">Two Lacerators</string>
				<Content name="TextureId"><null></null></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Script" referent="RBX53">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">PaintballShooter</string>
					<string name="Source">Tool = script.Parent

colors = {26,}

function fire(v)

	Tool.Handle.Fire:play()
	

	local vCharacter = Tool.Parent
	local vPlayer = game.Players:playerFromCharacter(vCharacter)

	local missile = Instance.new(&quot;Part&quot;)

        

	local spawnPos = vCharacter.PrimaryPart.Position
	


	spawnPos  = spawnPos + (v * 8)

	missile.Position = spawnPos
	missile.Size = Vector3.new(1,1,1)
	missile.Velocity = v * 480
	missile.BrickColor = BrickColor.new(colors[math.random(1, #colors)])
	missile.Shape = 0.5
	missile.BottomSurface = 0
	missile.TopSurface = 0
	missile.Name = &quot;Paintball&quot;
	missile.Elasticity = 0
	missile.Reflectance = .1
	missile.Friction = .3

	local force = Instance.new(&quot;BodyForce&quot;)
	force.force = Vector3.new(0,100,0)
	force.Parent = missile
	
	Tool.BrickCleanup:clone().Parent = missile

	local new_script = script.Parent.Paintball:clone()
	new_script.Disabled = false
	new_script.Parent = missile

	local creator_tag = Instance.new(&quot;ObjectValue&quot;)
	creator_tag.Value = vPlayer
	creator_tag.Name = &quot;creator&quot;
	creator_tag.Parent = missile
	


	missile.Parent = game.Workspace

end



Tool.Enabled = true
function onActivated()

	if not Tool.Enabled then
		return
	end

	Tool.Enabled = false
	local character = Tool.Parent;
	local humanoid = character.Humanoid
	if humanoid == nil then
		print(&quot;Humanoid not found&quot;)
		return 
	end

	local targetPos = humanoid.TargetPoint
	local lookAt = (targetPos - character.Head.Position).unit

	fire(lookAt)

	wait(.2)

	Tool.Enabled = true
end


script.Parent.Activated:connect(onActivated)

</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX54">
				<Properties>
					<bool name="Disabled">true</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Paintball</string>
					<string name="Source">ball = script.Parent
damage = 30



function onTouched(hit)
	local humanoid = hit.Parent:findFirstChild(&quot;Humanoid&quot;)
	

	if humanoid ~= nil then
		tagHumanoid(humanoid)
		humanoid.Health = humanoid.Health - damage
		wait(2)
		untagHumanoid(humanoid)
	end

	connection:disconnect()
	ball.Parent = nil
end

function tagHumanoid(humanoid)
	-- todo: make tag expire
	local tag = ball:findFirstChild(&quot;creator&quot;)
	if tag ~= nil then
		local new_tag = tag:clone()
		new_tag.Parent = humanoid
	end
end


function untagHumanoid(humanoid)
	if humanoid ~= nil then
		local tag = humanoid:findFirstChild(&quot;creator&quot;)
		if tag ~= nil then
			tag.Parent = nil
		end
	end
end

connection = ball.Touched:connect(onTouched)

wait(1)
ball.Parent = nil</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX55">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">WeldScript</string>
					<string name="Source">local w1 = Instance.new(&quot;Weld&quot;)

w1.Parent = script.Parent.Handle
w1.Part0 = w1.Parent
w1.Part1 = script.Parent.Handle2
w1.C1 = CFrame.new(3, 0, 0)</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX56">
				<Properties>
					<bool name="Disabled">true</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">BrickCleanup</string>
					<string name="Source">-- this script removes its parent from the workspace after 24 seconds

wait(1)
script.Parent.Parent = nil</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX57">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">armmove</string>
					<string name="Source">--Stickmasterluke

--just put this script under the tool and when weilded the left arm will go up aswell.
tool=script.Parent
while true do
	if tool.Parent.Parent.Name==&quot;Workspace&quot; then
		local la=tool.Parent:FindFirstChild(&quot;Left Arm&quot;)
		local ra=tool.Parent:FindFirstChild(&quot;Left Arm&quot;)
		local ts=tool.Parent:FindFirstChild(&quot;Torso&quot;)
		if la~=nil and ts~=nil and ra~=nil then
			local ls=ts:FindFirstChild(&quot;Left Shoulder&quot;)
			local rs=ts:FindFirstChild(&quot;Right Shoulder&quot;)
			if ls~=nil and rs~=nil then
				ls.CurrentAngle=rs.CurrentAngle*-1
				ls.MaxVelocity=0
			end
		end
	end
wait(.02)  --If arm looks glitchy, then make this number smaller. And avoid setting to 0(game will crash).
end	</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="LocalScript" referent="RBX58">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Local Gui</string>
					<string name="Source">local Tool = script.Parent;

enabled = true
function onButton1Down(mouse)
	if not enabled then
		return
	end

	enabled = false
	mouse.Icon = &quot;rbxasset://textures\\GunWaitCursor.png&quot;

	wait(.2)
	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	enabled = true

end

function onEquippedLocal(mouse)

	if mouse == nil then
		print(&quot;Mouse not found&quot;)
		return 
	end

	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end


Tool.Equipped:connect(onEquippedLocal)
</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
		</Item>
		<Item class="Tool" referent="RBX59">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">0</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<X>0</X>
					<Y>-0.200000003</Y>
					<Z>-0.5</Z>
					<R00>1</R00>
					<R01>0</R01>
					<R02>0</R02>
					<R10>0</R10>
					<R11>1</R11>
					<R12>-6.00000021e-005</R12>
					<R20>-0</R20>
					<R21>6.00000021e-005</R21>
					<R22>1</R22>
				</CoordinateFrame>
				<string name="Name">Desert Eagle</string>
				<Content name="TextureId"><null></null></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="LocalScript" referent="RBX60">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Local Gui</string>
					<string name="Source">local Tool = script.Parent;

enabled = true
function onButton1Down(mouse)
	if not enabled then
		return
	end

	enabled = false
	mouse.Icon = &quot;rbxasset://textures\\GunWaitCursor.png&quot;

	wait(.3)
	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	enabled = true

end

function onEquippedLocal(mouse)

	if mouse == nil then
		print(&quot;Mouse not found&quot;)
		return 
	end

	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end


Tool.Equipped:connect(onEquippedLocal)
</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX61">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">PaintballShooter</string>
					<string name="Source">Tool = script.Parent

colors = {26,}

function fire(v)

	Tool.Handle.Fire:play()
	

	local vCharacter = Tool.Parent
	local vPlayer = game.Players:playerFromCharacter(vCharacter)

	local missile = Instance.new(&quot;Part&quot;)

        

	local spawnPos = vCharacter.PrimaryPart.Position
	


	spawnPos  = spawnPos + (v * 8)

	missile.Position = spawnPos
	missile.Size = Vector3.new(1,1,1)
	missile.Velocity = v * 500
	missile.BrickColor = BrickColor.new(colors[math.random(1, #colors)])
	missile.Shape = 1
	missile.BottomSurface = 0
	missile.TopSurface = 0
	missile.Name = &quot;Paintball&quot;
	missile.Elasticity = 0
	missile.Reflectance = .1
	missile.Friction = .3

	local force = Instance.new(&quot;BodyForce&quot;)
	force.force = Vector3.new(0,200,0)
	force.Parent = missile
	
	Tool.BrickCleanup:clone().Parent = missile

	local new_script = script.Parent.Paintball:clone()
	new_script.Disabled = false
	new_script.Parent = missile

	local creator_tag = Instance.new(&quot;ObjectValue&quot;)
	creator_tag.Value = vPlayer
	creator_tag.Name = &quot;creator&quot;
	creator_tag.Parent = missile
	


	missile.Parent = game.Workspace

end



Tool.Enabled = true
function onActivated()

	if not Tool.Enabled then
		return
	end

	Tool.Enabled = false
	local character = Tool.Parent;
	local humanoid = character.Humanoid
	if humanoid == nil then
		print(&quot;Humanoid not found&quot;)
		return 
	end

	local targetPos = humanoid.TargetPoint
	local lookAt = (targetPos - character.Head.Position).unit

	fire(lookAt)

	wait(.3)

	Tool.Enabled = true
end


script.Parent.Activated:connect(onActivated)

</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX62">
				<Properties>
					<bool name="Disabled">true</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">BrickCleanup</string>
					<string name="Source">-- this script removes its parent from the workspace after 24 seconds

wait(1)
script.Parent.Parent = nil</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX63">
				<Properties>
					<bool name="Disabled">true</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Paintball</string>
					<string name="Source">ball = script.Parent
damage = 25



function onTouched(hit)
	local humanoid = hit.Parent:findFirstChild(&quot;Zombie&quot;)
	

	if humanoid ~= nil then
		tagHumanoid(humanoid)
		humanoid.Health = humanoid.Health - damage
		wait(2)
		untagHumanoid(humanoid)
	end

	connection:disconnect()
	ball.Parent = nil
end

function tagHumanoid(humanoid)
	-- todo: make tag expire
	local tag = ball:findFirstChild(&quot;creator&quot;)
	if tag ~= nil then
		local new_tag = tag:clone()
		new_tag.Parent = humanoid
	end
end


function untagHumanoid(humanoid)
	if humanoid ~= nil then
		local tag = humanoid:findFirstChild(&quot;creator&quot;)
		if tag ~= nil then
			tag.Parent = nil
		end
	end
end

connection = ball.Touched:connect(onTouched)

wait(0.5)
ball.Parent = nil</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
		</Item>
		<Item class="Tool" referent="RBX64">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">2</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<X>0</X>
					<Y>-0.200000003</Y>
					<Z>-0.5</Z>
					<R00>1</R00>
					<R01>0</R01>
					<R02>0</R02>
					<R10>0</R10>
					<R11>1</R11>
					<R12>-6.00000021e-005</R12>
					<R20>-0</R20>
					<R21>6.00000021e-005</R21>
					<R22>1</R22>
				</CoordinateFrame>
				<string name="Name">Desert Eagle</string>
				<Content name="TextureId"><null></null></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="LocalScript" referent="RBX65">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Local Gui</string>
					<string name="Source">local Tool = script.Parent;

enabled = true
function onButton1Down(mouse)
	if not enabled then
		return
	end

	enabled = false
	mouse.Icon = &quot;rbxasset://textures\\GunWaitCursor.png&quot;

	wait(.3)
	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	enabled = true

end

function onEquippedLocal(mouse)

	if mouse == nil then
		print(&quot;Mouse not found&quot;)
		return 
	end

	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end


Tool.Equipped:connect(onEquippedLocal)
</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX66">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">PaintballShooter</string>
					<string name="Source">Tool = script.Parent

colors = {26,}

function fire(v)

	Tool.Handle.Fire:play()
	

	local vCharacter = Tool.Parent
	local vPlayer = game.Players:playerFromCharacter(vCharacter)

	local missile = Instance.new(&quot;Part&quot;)

        

	local spawnPos = vCharacter.PrimaryPart.Position
	


	spawnPos  = spawnPos + (v * 8)

	missile.Position = spawnPos
	missile.Size = Vector3.new(1,1,1)
	missile.Velocity = v * 500
	missile.BrickColor = BrickColor.new(colors[math.random(1, #colors)])
	missile.Shape = 1
	missile.BottomSurface = 0
	missile.TopSurface = 0
	missile.Name = &quot;Paintball&quot;
	missile.Elasticity = 0
	missile.Reflectance = .1
	missile.Friction = .3

	local force = Instance.new(&quot;BodyForce&quot;)
	force.force = Vector3.new(0,200,0)
	force.Parent = missile
	
	Tool.BrickCleanup:clone().Parent = missile

	local new_script = script.Parent.Paintball:clone()
	new_script.Disabled = false
	new_script.Parent = missile

	local creator_tag = Instance.new(&quot;ObjectValue&quot;)
	creator_tag.Value = vPlayer
	creator_tag.Name = &quot;creator&quot;
	creator_tag.Parent = missile
	


	missile.Parent = game.Workspace

end



Tool.Enabled = true
function onActivated()

	if not Tool.Enabled then
		return
	end

	Tool.Enabled = false
	local character = Tool.Parent;
	local humanoid = character.Humanoid
	if humanoid == nil then
		print(&quot;Humanoid not found&quot;)
		return 
	end

	local targetPos = humanoid.TargetPoint
	local lookAt = (targetPos - character.Head.Position).unit

	fire(lookAt)

	wait(.3)

	Tool.Enabled = true
end


script.Parent.Activated:connect(onActivated)

</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX67">
				<Properties>
					<bool name="Disabled">true</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">BrickCleanup</string>
					<string name="Source">-- this script removes its parent from the workspace after 24 seconds

wait(1)
script.Parent.Parent = nil</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Part" referent="RBX68">
				<Properties>
					<bool name="Anchored">false</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">194</int>
					<CoordinateFrame name="CFrame">
						<X>22.6237106</X>
						<Y>0.89129287</Y>
						<Z>30.8624439</Z>
						<R00>-5.44631221e-005</R00>
						<R01>-0.60849756</R01>
						<R02>-0.793555677</R02>
						<R10>-0.99999994</R10>
						<R11>4.88024307e-005</R11>
						<R12>3.13420678e-005</R12>
						<R20>1.96137171e-005</R20>
						<R21>0.793555677</R21>
						<R22>-0.6084975</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">0</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">false</bool>
					<string name="Name">Handle</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">0</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>1</X>
						<Y>1</Y>
						<Z>2</Z>
					</Vector3>
				</Properties>
				<Item class="Sound" referent="RBX69">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Fire</string>
						<int name="PlayCount">165</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><binary>UklGRs5AAABXQVZFZm10IBIAAAABAAEAIlYAACJWAAABAAgAAABmYWN0BAAAAJtAAABkYXRh
m0AAAJd+B4maDgAIDgSRsxQ6OwAABQIAAAAAAAABAAAAAAAADQ8ABgAABQAAAAAAAAEAAAAL
OSsAACQpBSRkRgQAAAEIHyYPCgRGXBAHS0EjxeJEBRMNEGh0XsvHc6Pu/eP5mV6riIj//2er
//+dBnPbjrH///Xd49yMRGrP15egp6daF0YrAyANQYA2DQ0YFqr/////4Zb//58LR///ntn/
tjbl///////IM5r/6f/dtc74/////////+iOfV8UZf3/qH/l+v////+tR5L//3oOBQBY3vi2
QQYERJ2bO0TN3aq06f+nBDBnKgmF4lsAK9D/dg+n2meY//////rqdY7/sgaC//n2//xUAEHQ
jwBA7uBn2P//lTQCJ2N2mfj/3ff/y1MpzP9US9f///X//8TCwo6I1////+TZ/////c7TzIEL
fP/zxdD///////9vJs//0F5Ztf///9Z6H5P//84srv+mnL14EU3/owt395cYfH4DG8bnTmzS
///17O7//9FMVtr8//////OxfOO6GVWYOQAlUygCEAAZSlpxfojN//+wJ4D1//Oco2MJcKFq
YXy27O99JFxCA0F0My0+UHSGcU3M///////L//+VavTu7///z8azVYn//////9Ln//91kf//
////////////rZb3//////////+kzf//iL///97P///////////////////m1v//////////
////////////+c7/////////////////////////////////////////////////////////
////////////////////////////////2mbG////+P//9v////zx//+Lw//x8v///+X//63I
///////7/f/////24tba1t+na6/vs6z1///j6v/////55tvp/////////////////9rz/+DY
///////////////87///9vj//////9/i///28f/////////i////////////////////////
////////////////////////////////++TW3dvWm2K1+u7Sr9TfbYHs7fb/7urz//3Szt/Z
w8ji59XgzajS3sXE0ODLxOjq7f332c/l+erUxb3Y2ebkxdjo4ezy3Mjc//////////7/////
///////////27P///////////////////////////////////////////////+3j////+f7/
yOr95v/rwdX//dz/7bro///////3+f///////////////////////////////v////rr7P//
/+HCyr23saSwzsKuurqolKGxxuXasYBpZ5PA0tzNxtv09vn1///////Lxv//////////////
//Ht//////////////////n79PX/7snd8PL9/////////+mvhMf/////////////79fZ8v//
///35/r////Qn6nc////////////////6uL0+Pf6///////////////4/P///////////Pz/
/////+3uzq/r/fz2+NDA9f7+////+/v///Hj8Pv////52uDm1tri+fvc6P/47+2UO5f+///j
f4vi+8ii2v/inrP3yYS38OjZ0cCax9bQ0a6nZ43y87NCQD0YkueSPTUYACXH/+aPbYaNqMOd
WXu6qJa0mDkfV4GOtOL9tWOa57hliKzI/O/swoqXpMP08qdjODqq9+/Pu7zd+8+GYlRCgJ8v
N8uYXaBhIDFyvXcAAGChjWR7y9KXUk+Xppva7Mve/9Sd4K4sarbJ6fr569DM4eLi6Pfhydjs
xaXhrFCHk3SovHd7xIc2YX1JPHmsez8+OC8vRVhzo5RMOE1CSoCXk3pSMESQcjNGnLiWrJSl
sV03JjY9HS45ODwzN2mKgINpUFIXAC1lUk6IkXIlJXtsZbjJWQoxOBEbP26bbEdecq/e4b24
0tTStpaxztzYqKPb9969lnaMXBVevYIqZbenLDiseSVdgRYAY5l/YHhxAAAAAAAAQk1IDAAA
AAAhRzIAAAsfcmJWp5FeteGZc5izt+T918XJl4Cu8OuWg6OlkIaYo3pNVksrHz1MCAAdQUEF
ADQxGDBtpJaJVBwVHFNqZGZycGeFgmhNHxwDCJn179jH3fHszMC/iXCm3N25w+OwcqTsyZG5
2LGz2OTqvsb04c7C5v3Ki3JnmrZxamY6AwAAHl4iAAAcAAAxTgAAeo04LExEJQhDSQAAHk5A
NFdtalBLSwEAOVBOSGF6XU6k2WIbWjUAL4x1bHEaHKLZrIhjO0JUfK+AWIVqQ1YqAAAzBwAA
AAAAFwAAAAAAADNlRQAAIEUqDgAnYXN+dT0tYH5dOh4HIkFVXjwmRDgcNz0KATc/OFhoeI+I
YBIFLz1bZk9DZIlSWa+uhYiGZa//0Hyez87QqolqVn3J0ZqKdHOowYpFPT0TAA0yRkAbMnZz
NEJWO1prmLiRsuPZ4O3r7snW//H3//rt89qmloE/O4KVcFIyMF6Ho6CUrreNqunmzKmr2dzJ
vaJ2eMzm1eCmQl7IwHY7CShqa0tAP0FTUS44MQw0TksyLFA+NmJbLFeYZk1iWm15fZuUZVSI
1JhLgJBJY9vwuqLZvlee/7+g37dnXIWYcldLU1wlAAAAAAAAAAAAAAAAAAAANKOrXlEaAAAH
Qz5epLKGmdvOxOnHlKOxp8Hdxaywqa/azqW92MfG1cSQiau2wsOpob61j3BFUYNrJRQ4RUJe
c0oVHlN3SAAneCkAO1sPBV5YAzBhBgAAHAYABBwAAAoAAAMCCggAAAAAAAANAAAFAAAACg8N
EwMOQlpAMj0VABQZECdJX1dPSUVhShAiMyY7VXObo7u2e32aoa2xkn6hwLCys6SjnZKNnJmJ
p65/hqehflE6SVppeHmFhmZTOy0iESc0HRMZDwQAAA4VAAAAQj80SiwAABcAAAAAChwIAB4m
BRdFTUpYYGlyZmBcSykKISITIisVAAAAADEZCwcAAAAAAB8QAAAMKig0S1dRQ0VbUUVtjIiK
pauWjI+XlZWmtce2jrvKlKbTu5jC4ItDc56EbXVxWGl4XmyNkHuFqYiKwLqvxryOgq7GxMW4
uLyus6eOl77mu3x3k4JaisWwbmCGf2RmQC9XTSE2Yk04VD4ADz4qN1I9RWhOJz9USFdrWT8z
JRcMCzlYLAMAEBoMNEgeACl7Z08+CyNYWFJFMAQJWWIuEQwjM0VualdlSjFNSTZVYVZbLw83
XlxKPEddXFhyeW51UCtMjpJvUVBwSy5ednJmU2ZTHzBUY1o9TVw9LVBlPiczOz8vLkYoCzZd
VWl4PBApODVOXlZrbEVFZ31kR2l7eoSLoZJ7hYZ/aGKWuKyHeIqVkJaPaGJzSRQ3STtPPBMD
FlJiOBsJAAQ1U2BXKgcPQWFyjZ2RdVlrnYVzlohqh6CQXk+KnXB3o5l/fo+2sW9feoORmqOa
ellNcq7OwJ12YYa3sZCUrpVfYJiASGFoRDxRcV1klH1KMElxcFhLV4ummIaBfGtvcHB3RDBv
dVdqUQctXzMsW35rPz1QU0NORQ0BHUJdQj0UACIhDCgvQDcEAAAACgETEgAXGhswGgk3NQEi
TFNEHQkULkVgaT01TzgQDyUeGkZmNAAoSkJAMjcoIVdvSTFhj4FiRUdrcU9ikJOFl8nNvcTH
uY6KvNzm8vrUpKKsuMbE09+/p6essM7Tu93gsr3GpJ2KbXWBgY6FbVwwJUtHGQUVPUMdAAwV
AAAGEQ0NAAAABwIABy0DAAAlBQAABSQCAAAAAAADAAAAGiwnRV1tWjJrw5k/RqX//9OgmpmF
lqywys7W8dKbv/DozZx7k7CUbGtpcY+YlJexy7KAeZ3HyJWBp66NjINUWoqKfpdtJjxMPD1m
srd2S0NRSjdSXTo/XkAtQj4sGCI9RkhHW2RceYuFp8GdenJsW094oJWQiHyFl7/XoVxLRS5C
gImJm4RgWXGIh2Jad21sd2lpgnlYXm2FlYBxdWh5gFlQXHKdn3dmcXd6iZeJg4+OhXuDl5uh
lpW9u3pUbV8uL16Skl9nq5NVbX1PVoBYJExua4+fcGBcFQhhfE8pKk5sZzslKSIhQoCnjmlf
RFOquWhdfmRVV11vepLFzJ+LhIyy2uvz5rScnrHLtY6HflxGRFJ+raVoQU9QS1EmBDBLLi5F
MAoNHyImKBYYR2BPPkFFRj05Um+GdVZUXHWgmWBwnYd7b0pppLvBqG1FQ2qShGx6b2KAgGZt
hGc3W5R3WnWKdGZ3aFtnZVhDLzdVSCg2T0krEQoNDR4tOjk1ZGgsL09WVGyKe3KIeVFceXuA
kJWaoZeVuL2rw+Df6P/0zMHLy9fb0N7nxsLz6bvR2pmFyuzGrMG4lKzAqLTItK2zrJWCkqez
up90VlFyj4+Mhn5/psSgeJPY///LwrGBhsPfyMnLtaCfurmprpSAjH1wg5GOb01NQkJ7i1Y6
Mx4ZKiAVN0lASTQOJ0pDISFCOSAwKQwUHxgTN1s9ER9NVDwsHyVQclEvTjoFK29kLDxQQTYt
KQsFKTEoJTljYkZOaGRkcVpbdlcuP2Z9hW9OREBDVmtuYVppXkxeaGFaXXaWmod0bW1nYHab
kX13hJmFb4Sgm5+VfIR/f52oq7G2uLjHtIl7YVx7fXCOr5J3e4adqamorZyRvs20wtbUxbOs
tMni483Dw8DN1tP3/9y7v7zE6f3338rHzNvdzOD////w6+3b4v/+3Mnw//TVuqSoyNXU2MKf
kpejnYeXtamThIuhp7Kri3yVsZVlQz1uh2x+m5KLgGlaY2tgX2RiZmhbXEsrQ2p+WxsRHh8V
BgEAAAYKESMYAAAAAAAOBwAAIiUaJiwYBA8dFxwxNTRIW0o0NkBIPjxbfIV2eJaVf3NpdH59
eG5xZVRjZ09SVk5bSg8ALVJJOEdaZGRaTzhFVyYbW25NUWpWPUdhgqGbmriTTVqdwqOJnKSo
rbTBvb2rkqO32OTGyMWwwMvCys29uMna8f/16c7D7//o4fX/8+TYw87g3tXOydLUvb7Hxa2f
vbqbo8TFsK+7s7LHqWphiKabf3JvgJKYssCidWJpcmRMSVNRUmZkTkhKWmxXNUJSSFptWmF/
emJWVGCOo3xQS1lndmRBOlRPMicrVWY7LjY1YpR3JAMoODZGVUMpMUVLVGhkSzc3NzJAOzJW
dnlsVENOW1FNOUddLUFte4ZUQ01Va2Nfamxla2NXgJFrVmJqc31WQE5TdGE1P0ZES0MvKy5H
WVRKLCUoLkI6LC4lHTBESUczIik+RjYsNT84OUQ7KCg1Pk9ZWj8bKVBoZVxbXGFqfoZ2dYiQ
lqWvnpCswbWnk312g6O1sKyem7S5nZefmaKsmX6HoKu0nISMh4h9V1BpgoF/k5J5boiXh3hy
ZmeKlX1nXGBxcWRnY2RsWk9NPjExRlNOUVhVTlVjamJNQkE/QT0xJiEpOTsmHScqKyUXGi40
KC07RTknQldSWmdnVk5hbm5tZlpnf3VgbntucH52Z3GBbE1dgYaGhWtjdXtyfo6OjXlqaGp1
dm5XQ2eOi3dYVXV4X11pZl5mfINvWFZwg2xZbYeEcWRaVlRTXWJfUDVFaGVbVV99gHdwYWVv
bWdufoqYoJONkY+Zkm5jbG2Ak4Z8f3ptYnmRgGZZWVtYWVhSX3ZsW1pZTzo3RVFSNTRXUEBN
UklOVlNLQUJCPldxZkw9P0lXXVlQRD5BRlJaWEw5Mj0/MyUnLTM1Ji1COzxVVkFGXGhgTlt9
l52DZ1tZb4CHh3BmbGptcXaJko2Ql5ygoZ+jr6mUhHyEjpelq7Kwoam0k3BiVVhxeFVWdm5j
aGt0e2pPUWJjXWiCjoVnRzxANCdDcXtnUDo2T2VZPDJJYFpIQj9DTUU6OztFT1pmYk8+S2Bc
XVM5Nzs9SVVcXFNaaWFQRERTVEBFWUpCW3FnYG9oZXNqY3uHYkFVfHxdTVFeZmFcY3eGiIJ7
hpSPiop4eqC0pImAfW9vh5WJfm1QUGBaSERLS1BldnhlUVZgZWx/jXtseXhhYIOUiHl+h21X
bYiLgHyAd2lkXl5ucGRcSTU9U2RhXWdrbW1uZV9nbIWNdnaOm4Nzg4eEempkYFFER0tKUWJz
foFzZmhqbHdvWk5VYmV0iYt+YlNodWFXUktJQDg8TWV9jZB8XmGBkHteRzhJYmRiYV5haXOC
jIhtTVZqYlA6MkdXV1tUPjI5VWdeXGNQPEtUSUVPXV5NPkRLTl9fRDQ6U15JP0c6KCQbFBQj
ODElLTg2LigcHS04PUM9Ki08PDAvQVFbV0xNT1ZiX1lVZX1vSj1QVEVTbn17a2l8i4Z5cGli
aXx+b2hhVEtDQklSVUw/P0lQVVJLUVVgfo2KjpKMj5WRk5abtcCqlY+Uoq6sqKmdgnJzb2Nc
bI2ippqNf3yRmYmHlpqMe3p0an2Jf32EgoCPpa+2tJuDgYiJjqi+spGCjp2XiYqMh4aIjJGT
lpSCbmRodXt5cGdeUFBbXmdtYFxha3djQzY6SlVWbpihhGRSVmZuX0Q3Q05WZm1dSUE1MEhn
dWpOPERSVVlgW09LV2hjUVFUWGFkb3VsUTM/U05KRDk+PSYjQlpbW19YTUxJSEtKVl1bY2NX
XHBrWlJDLis5NyUkNlZtbHSBb0k/VXB5bWZhW1JJV3BqXG2AfXJiRzYvMlR2d21mYWBeZoaa
mpyfiGJXanZiWHqgtMDIvp2HgX10Z3CEj5aRjIaAkK6+w8Cje21zeXxyUjtLamlVVm12bnV+
dXNtWkxUcG9XUElIWmx0hYhnT1VkaGVhX2BhYmp/lJCFgYGVt7upkoWNlZiakoNuXGJ+lpah
rI2CprqvqaSdn5WBfI2dnIJud3+JkYuOjn1uXFBXX2JpcnZxbGJUS1ByjIJ5h5CGdGZeW15n
dHZlZHV9fnh2e3BaWGR1h4NrYWteP0ZkeYaKfFxMWWdqdXNfdJGXn6ijgG6BjI2Rkod1Y2iD
iHx3a1pXYFtoemNYa4OJd3B0a1xXYnJ1gpWIcmpwdF5TWlhddIOAdGpqaGlzd2xmb3V3gY2W
lHpmdoWLlZWFfYB3cHZ0amx6jpiMgHxuZ3SHnrKxmYF7foeXmoyIiXJkb3dxamxgVV5ygIN/
eW1sh6GWhIKHk5uZnaGamaGUg4yhpIpnY25pboOFcmBdcY6ipZuWn7LAvaufn6Kus6eclY2C
gI6cnZeRhnJsfpWRgIWKe4KMZEhgbmZre4aFdW55e3Z9jZiXkYyFfYaYmJign5eOiIKEhYaP
j46aqKqgl5eblZKNipKUjo+Sj5ORiH59iImKlKGonI+RhGJbZ2dpgJWIcG91bGR3lpuKeWtv
jJ2MfHx+enqCdmZsfJCipZaLmaSUfnV7h4mIi5msus3f39fZ1sa2tb/G1Ovtzaucm6Wvsa6l
nZqPgoCUrLbEx6yPhoWCfn+FkaOnobHG09vVzNTXxsTU4OHVy8rS0rein5qapqqqqaanr7a0
uLusoaakiG51hn5xeoyBcHh+dG13hYN7f4iNkpunn5SZj3h9ioaJmp6KeW1dT0xUWFhfa3N7
ipeTkJmYkZOaoaGTk6ewqqWahnZvbHKFkYVza2hoY2J0h5CQk5yhoZeHe3qCj6CooqKoqKSS
d210go+boI99f4d+fI2dp62noaeplX6AlZycqLnEvq2ck5u0xr6ppLvJvre3s7C5wb69xcO4
trWvqaqxqZ+goaaqpaKot722tsDIy8O6urmxraObobDH3NzQx7yytbivp6qmmJiloYuCiYmG
jI2Hi5ecnJyWjpCen5mcoZ6frbyul5ahpJySj5CSlqOkk5e1wr25s7C8ys2/p6Cqt725tbW1
uLazt7SqqLO9tqmwv7qkm6GgoLvMtJugr7Kys62moZyhsLu0p52Wobi7sK+ys7aznIyZsbu0
qKGgoaeuqJOEjazBxdPZx6yVkJygl5OdssrY3NfMxb2vqaamrba+w8Cwn6OwtrW0s6KTm6Sf
mp+horG8uKuhpKGaobTAtqyyu7anpainqJ+FeIqemIqMk4l8en1/hIuYp6qZhYyntaydl5mZ
mZ6nsaqhrbzAvbuzqqKOfoCHjZyppqGhnZSLh35ubHeDlam9y8zCvb2zqbC+wLi0sKivvrqx
tKuPfoSNlKWunI6UnZmRlJWHenh3eouZm5SUm5qWmaGgnqOgm5ujr62loqChr8DEuq+tq6ms
sK+pn5eZnp+eoqaimZywv7/AzM/Mzci8tKyjn52XioKLnKy1s6acm5uYkpCZo6euvL67vby/
xcPB0N3Wxr7Fy8Cvo6Wxt7zBwbqysa6stsTGu7KxuMTNxrSno6KjqaOPhYmSmJiWk5afqbnC
ubCtpqSssLOyrquhmJebqrzHwLa7vLW4vLixqqCWkJKbo6CbmZ2akpGaop6YoLC/ycnDvbSs
opeSlZialpGVnqattrqyppeJhIuboJSVqbS5wMXEv7WutLauq7bFx7yztLKmmJOVnaarraaY
jIqTnaSrsbm7ubq7ua+eko+Woquqo5aHi5ujp6OWiYiTl5CSmpqZnJ6epKagnJ2bmJmfo6Ga
mKOwtry/uLCso5WKjJqipK2yraWioZycnaKloZ+kpaGiopaRl5iaoJ6Vj46Oi4qJgn+BgoSE
goaMjI6Zn5qXnZuIeoSWn6izuLKkn52Vl6Gko5uUnq2woZCOlpSMiIV/f4WIiIOAiZKXoaae
lpWVkIyOioGFkJealouEgoWKkZSTko6QoKmbh3x2eoaWnqarpJOHiouFjJiXkY6VnqGiopmM
goGIjpCSj46ZqLrExMK6rquuqqOjpJyao6y2wszLvKyorrO6v7ano6Kaj4qSnJuWlpWTlZ2o
t76xmoyLjZWenpudoKGora2ppaGiqKuvt7y4s7a+wL23sKytr6mioJ+eo6Whn6Sus62pq62m
m5WUkYyNkJCOjIqKjI+TlpeaoqOalZOKf3p4dXh/hpGXkIqOkpKXpK2noJiIfoONlqCqraeb
jomNlJygnp2XjouHipignJKDe4aTk46JiI6RjomAfoGDiZGTlZeYl4+DfXx+h4+Nio+cqa6q
mYZ5cGdjand8e32Jl5aQlJ+iloySloh4eIGCenZ7e3l5eG9hYGp4hYuNioB8gYuRjoqMlJ2l
qaihmpqdmpmZlpSaoamxs6WVkZOQjo+Ojo+QkZCPk6GtrKKSh4OAhJOXjYqMh395fYqaq7Oy
q56QhYSEhIeKjIqKl6astLeuoJaYlpGgsKiZo7avoqabgHeCiYiJjoZ5eHVzeH6FhHx6e3d2
iJ2ckIuFgYqVlZaho5aQmqGbmaCdlY2HjY2GhYSFiouKh4F6dXN0e4OGh4mNkpOSkZuhnpeL
gIKGhYiQk5OSjIeIg3t1cXaBiYmHiIqLjYuBfICEhYmNhHp4dnZ6f4eQk46IhHx1d36EhIF+
fntybGxxeoeQjIOCjZWSkZCHe3h5d3FzfYKFhoODi5KLh42OiIiMkpacn5aKiIeGh4aBgYeN
joyFfICHhIWOlJWXmpSFfX+Fi5CQjYuJgHh1c3JwcHV/h4mJhYOCfHZ2dXZ+i5ORjIeBfoOM
j4qGh42SmqWknJmXl52kqKSdmJeam5eTlpOFfoOKioaDgYGKlI+CfHl3eYKQmZSGe3yDiIiI
iIqPkI+Pjo2JhoqOkpWQh4OBgIOCgYaQk4yEfXh7hIyJf3p8g4uIh4h9eoeNgn2AgH+Af3x7
en2CgHt2dnt6cGZlZmBeZ21rZ2lwdHNwcnVwZF9qc29pbG9wcnR1f46LhIeJiId/cGdqbXBy
d358c3J3cGRse3Vpb3x9d3l8eXd9f3NkYWhtb3R5dG1tcWxlbHRzcnJzfIaQk4qDhouRkomB
fX2FioqNko6JiYiKjoyEgYmNi5CWlIuAeHh7eHBuc3d4enp5e3tvZWZuc3FwdoKNlJSOgXt9
fXh4gYeEg4iHg4iPiYSPmpiXnJaJipKMhIWCdm5uamZqcHByd3l9hYuUoKOajYiDe3Jucnd5
dnFnYGh3eXNvcXd8goqNkZufmJaXinx9gH5/gIOJiYOAgX98gYR8e4iMiImJf3d9gXp4fHly
b2tnZ2NfYWVmaWxsb25oYl5faHBxb2tocHt/fXl0bWtzfYGDg314e4WJiYyJf3x9enVxbmdZ
VF1iXmFlYF1kamNfanmEhH1/gXx/iIqDfn19fHt4dHZ7eG9teH98gIZ+cnR5en2FioSJl5OI
ioqEenBuc3Z0cHJ2bmNsd3Nxd4GMlJyfloN5gIyQjY+OgXNye3xvZ295foSMjop/dXVxYl1l
ZmdudHp9en6CgX56dnNraW5ycXBva2diaXd2bGptal9XXWZlX1xhZ19WX2ZZUl5scXFydnt+
hYmAdHBxbmlnam9uZWRra2FdYF5YVVdaYWJcW15gZmtpX1xjZWBlbWtnb3h8gIB1ZmJkZmZj
YF9fWVhgZGhxcWtudXFpZFtWWFxkcndzcHBva2hmYllVW2Vrb3mDhX9+hoqCenl5eH6De25t
cHByeHh1d3VqY2RqdHhxa25xaGRraWBdXWJqb3V1cnN3dnZ4en6CgHp8fnRzfHhudYqWko2J
g4OHiImSlop7fomIgHx1b3uSl4h7d3iEj4Z6eHFnZm95gIF8dnh9fHFvdnBob3RraHJ4d3uF
hHyDi3toanFpZHJ7d3VtZGt4cGVsdoCOjoOImZF4eIJ+e395cHiCfHiAhYF/hYiAdnh9dW5y
cW1zfYKFhX1sY2lua3B4c2ttbWdueXNjXF5laGNdW15jZGNfWlZbXllXWFpia2dgZGhkXVZa
ZWhgXWRmYmFhZGtuYVdcYmNlaGtubW1tbnR8enFtbWlpcXVvZmVpbXR7enNvaFtXXFhTW2Rj
YmNhYV9YVVpcXWJve3tzbnSAiIeBgIF8en5/fn13cG9tbG9sZ2hlX1tYXmltcnx7cG1wZ1VT
WVdYZnR7enZ1eYCAeXNycW1scnVzcHJ0b2dhW1VVW2BiaHN2bGhta2hscG9oZWloZWprZ2l0
fn96dnJwbmtpZGFgXmBmcH2FgHdva2tuc3uAgH58eXl3c3FtbXh+enmBh4F3cmtgXmNobHR9
gIGCgn1xZV5ga3RyZ15gaHB0d3JnZmtqZ2xxbGlqa2tqaWhkYGFjYmRrbnB4fX19e3V0dnh4
eHt/gH98fYeMhICDfXd4eXdzcG9yeHt4cmtra2RgYmNma2tpa25ubG1taWdrcnVzcnl+e3Vy
cXJ3fn90aGRlZ2lkYWJjYWVxeHl6e3d2ent8gIB6eX+FhoSBgYCAfnNtbm1vc3Z4eXp6en6C
hIWEg4F/enV3eXNqZGh0fHx7fHZxdn1/fXt8f353dXZ1c3J0eHl1d31/gIB5cm1tc3Z0dXl0
b29sZmVoamxwdHh8g4aDfHVuaGNdYGx4fHl0cHBydXd4eXVxb29zeHl1dHqBhoR8cmpmY2dy
en6Af3hybmxubWZjZ2hna3F0cm1pcHuDgXZvbnB3fHt3dXVycG5raGhoaWhmaG5vbXBycG9x
cnJzdnh4dXFuaGNnb3J4gYeFf3p4e3x3cm5tcnd5eHNvb3N9g4KCg350cXJwcXd3cm5tb3F0
dHFxc3N1d3RwcHBwcHBwcXV4eXVsYl5dW1pfZWZmZmZqb29tc3p/gn1zb3R6fX15dnh9g4SB
fXx8fX16c3BzdHN1en14cG1ra2ttcHJ1eYCFgn+Ag4KBhpCZn6CblJOUj4yKg3p0bmReYmho
Z2poYV5gZGZnZmdpamlqa2hkZ2prbXBuaGNjZ2hoa25wb21tb3Byb2tsb3ByeHt5dnh4c2tk
YmNnbG9zeHd1dHZ6gISFg4OCgYOEg4OCfXt7fXx9fnx6fYSIiYmJhYB+f4GJkI6Jh4qPj4d8
c25ucXV4e3+CgHx6eXZxbnB3g4uKh4aDfnhzdHVzdXp6d3h5eXt6d3RwbGptcXV3dXFubm5u
cXR2cWhiYGNueX16cmpmZmhsc3t9enp6d3R3enx7fH17fH9+enp8eHJzeoCAfHl1dXhza212
foB8dnFwc3d6foGFiYmHh4aAd3BxeX9/fn19fX17eHV0eICGhICAhISEhYmNjImEf3yAg4OC
goSFf3l7goaDfnx6eHl+gX14eX6EhoWAenZ2d3l4dHJ0dnl7dm1nanF4eXd0cnBvbm9xb2pq
b3V4e4CBgIGDhIJ/foKHiIaGhIF9eXd5e3x5dHJzdXp9e3dzcXJ0dnVycnR2dXV2eHp7fHx+
f3x2cGppcXt+gH97eHl6eHZybWxvdXh3eX1+eXFudH2EiIWAfHl9hYaBf355dXd7fXlycXV+
hYaEhIWEgX17enx9fHx+f4GEgn17foCBhYiKiYJ9foOGhYSJioeDfnl3fIaKg3lwb3Z+f4CD
iJGanqGgnJeQi4yKgn58eXZ3eXZxb3N5e3p2cXJ2e4OOkY2KjYyGhYJ7dXV4d3JtcXd3eHt9
enl8fnt3dG5scXd5eXt/gYF9d3N1enx6enp4eHp4dXR1dHR1c3BucXd7foGAfXt6dnJzd3uA
hYiKiYaEg4B6d3d6fX59enl9fnt7enZzcnN1e4CChYeKjpGRj4uGhYiIhoSEg357fHt5eXt7
eXZzcXJ3fX56d3Z3f4mIf3dxbXF5end6f4KCgH16e3+Cg397enyBhIB+gYSGhYB6dnd7enRx
dHZ1dXh+g4SCfHd1dnd4d3d5e36BgYKDf3t5eXyChYaKjImEgICAf4CDgX1+gICBg4SAe3h1
dHh/gX9+fn+BhIN9eX2EiIuLiIOBgHx6e3+CgoKDhoiKi4iDf359fn57d3V2e4GBfn5/gIGB
gYKEhoeHhoOChYiKjZGSi4OAgYKDgXt4eXl7gIWIhYB/f3+BhoqLioiGhISGiYeEgX55eXx9
e3t4d3p+gH9+fX6BgoKChISDgX59f4GChomHhYKBgoOBgoaHhoeHhYOBg4aJioqIhoSEgH15
dHN4foOFhYaHhIKEi42Kh4WBfHt7eXqBhoaGh4WCgH9/goWHhYB6dnd5fICCf3x/g4WFg4OE
gHp5e3l3d3uAhIJ+e3t+goaIh4SEhYWFiY2NiYWEhIaJi4uLiYWDhIaJiouLioiGhYB7eHd5
e3p4d3h8fXx7e3l3en6AgYOFhYaGhYOCfnyAhIWHiYmIiIiGh4eDfnx9fn59end0dXZ3d3Vz
dnp9f4KCf31/gYOEhIOEh4uNjY2Kh4aDg4WGhIOGiYmHhYKAgYKAfXp5enl4dnR0dnd0dHuC
h4yPjo2MjImGhomLi4yOkJGRkI2IhYaHhoB8e3x8fXx3c3V4fIGDgoB9fHx8e3p4d3Z2d32D
iY6PjIeHiYqKiYV/e32Bg4OEgn98foGEhoaEgH+BhIeIh4aEg4KBgYGCgoKAfXl3d3h3d3l9
gYWIioyPkZKSk5CKhIKChISEhISEgn99fHx9fXt4dnd5fX59fICEhIKCgoKEh4mJiYqMjo6L
iIWDgYCDhoiHhIKChIiMi4iEg4F/fn+BgICChIWDgH5+gIKEhIODhIeIhYF+f4GDhYeJi4qH
hYSEhIWGh4eHh4aFhIODg4OEhYWGh4aGh4iJiomHhYWGhoaHiIiJioqLjI2OjYqHhYSEg4OB
gIB/f4B/fX1+f4GEh4eHiYuLi4qHhIOBf3+AhIiJiYeHhYF+e3h3eHd2dXZ3eHl6e3t8fX5/
gYSGhYJ+e3l5e3x7eXp8fX5+gIOEg4OCgoOGhYJ+e3p8gIWGhIKAgIOEhYWEgoKFiIqKiouL
iYWEhIWDf3p5e36AgYGAgYKFhoeGhIODhIeKi4mHh4aEhYaGhYeIiIiHhYJ/fn1+gYWJjI2N
i4qJiIaGh4eHiIeDfXt+hImLi4mGhYaGhYWFhYOAfn5/f35/gYJ/fn5/fX2AhIeHhYOCg4OC
goKCgoKDhYeGhIODg4SEg4KBf35+fn59foCCgoSHio2MioiIiIeHh4mLi4mEgX+AgoWGhYOB
g4OAe3l6fX57ent8fXt3dHR3fIGEhIaHiImIhYKCgoSFh4iJiouKh4WEg4SEhISHi46Oi4eC
gIGEhIODhIeHh4mMjYyKh4J+foCCgoKFiImIhoWEhIWEhIaHiImIhYWIiYmJioqIg358fYCB
goF/foCBhIiKiYiIh4aFhYSEhYiKjIyMi4eCfn6Ag4OCgH9/gIB+fXt6fH1+f3+Bg4OCgYGC
g4SGiIqLi4yMi4mEfXl5e3+Cg4OCgoGAgICBhIiKioqIhIF/fXx+goSGiIeEgoWIiYmIhIGB
goB9fHx8foKEgoCBf36BhIWFhYSBgoWGhoaGhYWFhIOAfnx8foCCgoOFhoeHhYOBgIGCgoGB
goSGh4iIhoSFhoaGhYKDhomKioiGhoaIiIaDgX9/gH9+foCDhoaHiIeEhISFhoaFg4KCgH15
d3h6e35/fn1/g4eJiYiIiImIhoaHiIuLiYiHh4iIh4aFh4eHh4eIh4WEhYaGhoWFhYSEhYSD
hYWEhISCgH+Ag4SDgYB+fX+ChIWIiYmIhoSCgoKChIiJiIiGgn9/goWGhYSEg4WIioqJiYmJ
iYiIiIiIhoSEhIOBfnp4d3l9f39/fn6Ag4aIiIaDgH9/f4CBgYOFhYKAgoWGhoaDgoSFhYSE
hoiJiYuMjY+RkpGPj4+NiIWBfn18fH6AgYCBg4SEhIWGhoaGhYODg4OFh4qLiYeHhoWFhYWE
g4KCg4WGhYOAf35/gIGAf39/f3+BhYeGgn58foGCgX9/gIB/gYOFhIF+fX1/goSGhoSCgH+A
gYB/fXx+gYODhISDhIaIioqKi4yNioeIiYeEg4OCgICDhYaIiYiFhYeIioyKhYKAfn+AgH98
enl6fH5/gICAf35/gYSFhYSEg4GChISCgoGAf3+BhIeHhoWDgYGDh4iHh4eHh4iIiImIhYOC
gYGAfn18e3l7fX9/gICAgYODgoKBgoSDgoKFhoWDgoOHiIaDg4KCgoSGiIiFgYGBgH5+f3+A
gYOFhIOBgH9/f358e3yBh4yNjImEgYGCgH9/gYKChoqLiIWDgYGDhoaEgoKDgoGAgYGBgICB
gYKCg4SDg4F9e3p5eXh3d3h5fH5/fn5/gYOEg4OCgH9/gIGBgYKCgX59f4SHiIiHiImJiYuL
iIWEhYaFhIN/e3h4en2AgoKAfn6AgoODhIWFhYaIiYmIiIiJiYeDf319fHx9f317eHh5eHh8
gIODg4SEgX+BhomLi4uKiYmIhYOBfnx7fHt8f4OEg4OEhYSCgYKFh4mMjYqHhoeIh4aDgICA
gIB/gICBhIaHiIeFg4B9e3t/goaIiYmKioiFgoB9fX18fH19foCBgYKDhISFhYaGhYOBgH9+
fXx6ent8fX+Bg4ODhYeHhIF+e3p8foCBg4OBf359fHp4eHl7e3x+f319fn5/gIKBfn1+fnx7
eXd2dnd6fYCChIWGhoaGhoSCf35/gYKCgoSGhoWDgX9+f4CBgH9+foCCgoGAgH+BgoKAfnx9
f4CBgH9/gYWIiYeDgH5+fXt7fYCEh4mJiIeEgoF/fXt6ent8fn9+fHx+gYOFhYSCgYKDhYWF
hYSCgX9/gICBgoSGh4mJiYiHhoSCgYB/fn+BgoOCgYGBgoF+enl5ent8fX6Bg4WGhoWEhYWF
hYWHiYmJhoSEhISDgoGBgIKEhYKAgYKDhIOBgH99fH1+gICAf319fH1+fXt6e3x9e3t7fH1+
fn1+gYSFhYaGhYaIiYmIiIiIh4eGhoaGhoWDgH9+fX5/gIGAgIGBgIB/gIGDg4J/fX19fX19
fXx8fX5+fn+Af319f4CBgYB+fX6BgoODg4OCgoF/fXx7e3p6e3x9fn9+fHt6ent8foKFhoaG
hYWHiIeFg4KCg4KCgoOFhYOAgICAf316eXh4enx8fX19fX5/f3+Bg4WGiImJiYmJiIeGhIJ/
fn18e3p6enp7fX5+fX1+f4CBgYKDhIODgoKCg4KBgIGCgoKCgX9+f4CAgoKBgIGCgoGAfX1+
gH9+fnt5eHl7fX1+fn5/f4B/f4CChYaFhIKBf359fHt7fHx7enp6e3x+fX19fn6AgYF+e3t8
fX1+fn16e3x+gYODgYCAgYKBf3+BgoKCgoB/gIKCgoGAgICAf4CBgYGBgICAgIGAf359fn5/
f359fX19f4GCgoSFhoaFhIODhIWFhYSCgICBgYGAfnt5eXl6e3p4eHp8f4GBgH59fH1+fn5/
fn5+gISGhoaGhYSEg4B9fH1/gH9+fX19fHt8fn59fX6AgIGCgn99fX19fX19fX19fXx8fHx9
fn5/gIB+fX5/gICAf318fX59fH1/f39+fHx9f4GBgICBgoSFhYSCgX99fH17eHd3eHh5e319
fHt8fHx+gIB/fn18e3t9f4CBgYB/f39/f4CCg4SEg4OCgYGAfXx8fH1+fnx6fH6BgX99e3x+
fn1/g4F9foGCgYGBgoGAfn6AgoF/fn9/fn59e3t7fHx8fX18fH19fn9/f39/f4B/fn18fHx8
fHx8fHx8fHx9fX18fX18e3t8fX5+fX18e3x9fn59fX19fn18fHx8fXx8e3t7fX19foCBgYB/
f4B/f39+fn5+fHl4d3d4eHd2dnZ3eHl6e3x9f39/f39/f39/f39/f399fX1+fn18e3p6enp6
enp6e3x8fHx7fH+AgICAf35+fX19fHx8fX19fHp5eXp7e3t8fHx8fHx9fn9/f39/f39+fn59
fX19fn5/fn5/f35+fX5+fn5+fn5+fX19fHt7e3t7e3t8fX5/gH9/f4CBgYF/fn19fHx7fH1+
f39/f39/f39/f4CAgH9+fn5+fn9/gICAfn18e3p7fH18e3t6ent7enl6e319fHx7e3p5enp7
fYCBgH9+fXx7e3t8fH19fn19fHx8fX1+fn59fX1/f39+fXx8fX5+fX19fHx8fHx7enp7fX5/
f4CAgYB/f4CBgYGAgICAgYGAfnt5d3Z1dnd6fH5/f39+fXx8fH19fX5/gYKCgYGCgoGAfnx7
ent9fn+Af35+fn59fX5+fXx6eXl6enp7fX19fXx9fn9/f359fX5+fXt6e31/gYB/f39+fX19
fn5+fn19fn+BgYF/fX1+f35+fXx8fH1/f4CAgICAgICAgIGBgYB/f39/gH9/gICBgYGBgYB+
fHt7e3t6eXl5ent9fX5+fn5+f4CAgICAgYKCgYCAgICAf35+fn18e3x8fHt7fH1+fn5+fn5+
fn+AgIGBgYB/f359e3l4eHl6e3x9fXx8e3t7fH19fX1+fn9/fn18fHt7e3x8fn+AgIGBgYGA
f39+fn5/f4CBgYCBgYGAgH9/fn19fXx8fHx7e3t7fHx8fH19fX19fX5/fn5/fn18fHx8fX5/
f39/gIKDgoGAf39/f359fX19fX5+fX19fHx7fH19fn5+fn+AgIB/f35+fn59fXx8fH1+fn59
fXx7enp7e3x9f4CBgoGBgH9/f35+f3+BgoKCgYGBgYGBgH9/f39/f359fHx8fHx9fX19fXx9
fn5+fn5+fn5/gH9/fn18fH19fX1+fn5+fn5+f3+AgYGBgYKBgYCAgYGBgX99fHt6e3x8fHx8
fX5/f4CAf359fX5/gH9/f4B/f39/gIB/fn19fX6AgYGBgYGAf39/f39/fn1+fn9/fn17e3t8
fX5+fX19fX5/gIGAgICBgYCAgICAgH9/fn19fn9/f3+AgICAgH9/fn18enp5eHh5enp7e3x8
fX5/gIGBgoODgoGBgYGBgYCAgICAf35+fn5+fn18fHx8fX5/f39/f35+fn19fX5/f39+fX18
fHx8fH1+f35+f3+AgIGBgH9/fn59fn5+gIGBgYGAgH9/f39/f39/f4CBgYF/fXx8fHx7e3p6
enp6eXp7fX5/gYKCgYGAgICBgoKCgoGBgH9+fX1+f4CAgIB/f39/f39+fn5/f39/gICAgYKC
goKCgYCAgIB/f359fX1+fn19fHx8fX19fX19fX5+f35+fn9/gICAgH9+fn5+f39+fn9+fn6A
goODg4ODg4KCgYB/f39/f3+AgICAgICAgH9+fX19fX1+fn19fH19fn9/f39/fn5/f39/f39/
fn5+fn9/f39/f39+fn1+f4B/f3+AgIB/fn18fX5/f4CAgICBgYB/fn19fX5/f4CAgIGBgYF/
fn19fn59fHx8fX5/f39/fn5+fn5+fX19fn+Af39/f3+BgoOCgoKCgYCAf3+AgYB/fn+AgIGC
goGAf35+fX19fHt6ent9fn9/fn19fHx9fX6AgYKCgoKCgoGAf39/f39+fn5+f3+AgIB/fn5+
fn5+f4CBgH9/fn5+fHt7e3p7fH19fn5+fn1+fn5+fn5+fn5+fX1+gICBgICAgICAgICAf35/
gICBgYCAf39/gICAgH9/f39+fX19fX5/f39+fn6AgICAf35+f4CBgH9/fn5+fn5+fn5/f39+
f3+AgIGBgYGBgYB/fn59fX19fn5+f3+AgYKDg4KBgoKDg4OCgH9/fn18e3t7fH19fX5+fn+A
gICBgYKCgoKBgH9+fn5+fn5/f39/fn5/f4CAgYGCgoKCgYGAgYGAgICAf39+fn19fXx7enp7
fH19fn5+fX5/gIGBgoKCgoKBgH9+fX19fn+AgYGAgH+AgIGBgYGBgoKDg4KCgYCAgH9/fn5+
fn18fHx9fn5+fn19fH1+f39/fn5/f3+AgICAf35+fn5+f39/fn9/f39/f35+fn59fn5/f39/
f39/f4CAgYKEhIWFhIODgoGAf35+gICAgH9+fX19fX19fX1+fn5+fn9/f39/f39+fX5+fn19
fHx9fn9/gIGBgYGBgH+AgIKCgoKBgIB/fn59fX19fHx9fn9/f39/gIGCgoKCgYGAgICAgICB
gYGBgH9/gIGBgoGBgIB/f4CAgYGBgH9+fX1+fn9/fn5+fn5+fn9/gICAgH9/f35/gICAgICA
gIGBgICAf359fX19fn9/f39+fn19fn+AgYGBgYGBgYGAf39/f4CAgH+AgIGBgIB/fn5+fX18
fHx9f4CAgH9/fn59fX1+fn+AgYGBgYGBgIB/f39+fn5+fn59fHx9fX1+f3+AgYGBgH9+fX5+
fn5+fXx8fX5/gICAgYGBgYGBgICBgYGBgoODgoKCgYGAgH9/f39/f35+fn9/f3+AgIB/f35+
fn5+fn5+fn9/f39/f39/f39/f359fX19fn+AgYGCgoKCgYCAgIGBgYGBgYGBgYGAgH9+fX1+
f3+AgH9+fX19fX5+f3+AgIGBgYGCgYGBgIB/f4CAgICAf39+fn1+fn5+fn59fX1+f39/gICA
gH9/f39/f39/f3+AgIGBgH9+fn9/gICAgICAf39/f358fHx8fX5+f3+AgYGBgYGBgICAgIGB
goKCgYGCgoGAgIB/f39/f39/f35+fn19fX5+fn5+fX19fX5+f3+AgICBgYGAgICAgICAgICA
gIB/f39/gICAgICAgYCAgICAgIB/fn5+fn5/f4CAgYGBgYGAf39/f35+f3+AgICAgICBgICA
f35+fX19fX19fX5+fn59fX5+f39/f4CAf3+AgICAgIB/f35+fn5/fn5+fn5/gIGBgYKCg4OD
g4ODg4KCgYGAgH9+fn5+fn9/f39/f39/fn5+fn9/gICAgICAgH9/fn5/f4CBgYGBgYGBgYGA
gIGBgYB/fn5+fn9/f39+fX19fn5+fn5+f39/f39/f39/f39/f35+fn59fn5+fn9/gIGBgYCA
gIGBgYCAgICAgICAgICAgIB/f35+fn9+f3+AgH9/f39/f39/f39+fn19fHx9fX5/gICAgIGB
gYKCgoKCgoKCgYCAgICAgICAgICAgIB/fn59fn5/gIB/f39/f39+fn9/gICAgICAgH9/f39/
f39/f35+fn5+fn+AgYGBgYGBgYGBgoGBgYCAgH9/f35+fX1+fn5/f35+fn9/gIB/f39+fn5/
f3+Af39/fn5+f4CAgICAgICAf3+AgYGBgYCAgIB/f35+fn9/gIGBgoODg4KBgH9/f35+fn5/
f39/f35+fX19fX1+fn5+fn+AgIGAgH9/f4CBgYKDg4ODg4KCgoGBgIB/f359fXx8fHx8fX5/
gICBgYCAgICAf39+fn5+fn9/f359fHx8fHx9fX5/f4CBgoKCgoGBgYGAf359fHx8e3t8fH1+
f39/gICAgYGBgYGBgYKCgoKCgYGAgICAgICAgICBgYGBgICAf39+fX19fX1+fn5+fn5+f39/
gICAgIGBgYGBgYGAgIGBgYGBgYCAgYGBgYCAgICAgICAgH9+fn5+fn9/f4CAgIB/f35+fn9/
f4CAgH9/f39/f39/f39/fn19fn5+fn9/f3+AgICBgYGBgYGBgoKCgoKCgoKBgIB/f39/f39/
f4CAgICAgICAgIB/f4CAgICAgH9/f39/gICAgH9/f4CAgH9+fn59fn5+fn5+fn5+fn9/f39/
f39/gIB/f3+AgICAgICAgICAgIB/f39/fn5+f39/gIB/f35+fn5/f4CAgICAgICAf39/f35/
f3+AgICAgIB/f39/f4CAgICAgIB/gICAgICAgICBgYGBgIB/f359fX19fn5/f4CAf39/f3+A
gICAgICAf39/f4CAgYKCgoKCgoGBgYGBgYKCgYGAf39/f35+fn5+fn5+fn19fn5/f39/gICA
gICAgIB/f39/f35+fn19fX1+f4CAgYKCgoKCgoKBgYB/f39/gICBgYB/f35+fX5+fn9/gICB
gYKCgoKBgH9/f39/f39/f39/f39/f35+fn5+f3+AgIB/f39/f39/f39/f39/f39/f39/f4CA
gICAgICAf39+fn5+fn5+fn9/gICAgICAf4CAgIGBgICAgICAgICAgYCAgH9/f35+fn5+f3+A
gIGBgYGAgIGBgICAf39/f35+fn19fX5+fn9/f3+AgICAgIGBgYGAgICAf39/f39/f3+AgIGB
gYGAgICAf39/fn19fX19fX19fX1+fn5/f4CAgYGBgYGBgYGAgH9/f35+fn5+fn9/f39/f3+A
gIGBgoGBgYCAgICAgH9/f35+f39/f39/fn5+f3+AgH9/fn5+fn5+f3+AgICAgICAgH9/f4CA
gICAgYGBgYGBgYGBgYGAgH9+fn5+fn9/f39/f39/gICAgICAf39/f39/f39+fn5/f4CAgIB/
f39/f3+AgICAgICAgIB/f39/f39/f39/f39/f39/f35+fn5+fn9/f3+AgICAgICAgYGBgYGB
gYGAgICAgIB/f39/fn5+fn9/f39/fn5+f3+AgYGBgYGBgYCAgIB/f3+AgICBgYGBgICAgICA
f39/fn5/f3+AgICBgYGBgYGBgYGBgYCAf35+fn5+fn5+fn5/f39/f3+AgICAgICAgICAgICA
gICAgICAgIB/f39+fn5+fn5/f39/f4CAgYKCgoKCgYGBgICAgIB/f35+fn5+fn5+fn5+fn5+
fn9/gICAgIGBgYGBgICAf39/f3+AgIGBgYGBgYCAf39/f39/f39/f39/f39/f39/f3+AgICA
gIB/f39/f4CAgICAgH9/fn5/f4CAgYGBgIB/f39+fn5+fn+AgIGBgYGAgIGBgICAf39/f39/
f39/f39/f39/f39/f39/f39/f39/f3+AgICAf39+fn5+f39/f39/gICAgICAgH9/f39/f4CA
gYGBgYGBgICAf39+fn5/f39/f39/f39/f39/f39/f39/f39/f39/f39/f35+fX1+fn9/gICA
gICAf39/gICAgYGCgoKCgYGBgYGAgIB/f39+fn5+fn5+fn5+f39/f39/f39/f39/f39/f39/
f39/f39/gICAf39/f39/gICAgIGBgYGBgYCAgICAgICAgIB/f39/f39/f39/f39/f39/gICA
gICAgICAgH9/f39/f39/f39/f39/f39/f39/f39/gICAgICAgICAgIGBgYGBgYCAgIB/f39/
gIB/f39/f35+fn5+f3+AgICAgYCAgICAgYGBgYGAgICAgICAgH9/f39/f39/f39/f39/gICA
gH9/f35+f39/gICBgYCAgICAgAA=</binary></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="SpecialMesh" referent="RBX70">
					<Properties>
						<Content name="MeshId"><binary>dmVyc2lvbiAxLjAwDQozMzYNClswLjQ3MDYyNywgLTEuNDYzMTgsIC0wLjczNTEyOF1bLTAu
OTc1NTAsIDAuMjE3ODYsIDAuMDMwNzFdWzAuNzQzODIsIDEuMDE0OTksIDBdWzAuNDg5NTUz
LCAtMC45NTAyMTcsIDEuMTU1NjNdWy0wLjk5OTY2LCAtMC4wMTQ1MiwgLTAuMDIxNDRdWzAu
OTg5NTgsIDEuMDc4MTEsIDBdWzAuNTA5OTk3LCAtMS40NzY3MSwgMS4xMTc5MV1bLTAuOTk5
MjAsIDAuMDAwMDEsIC0wLjA0MDAyXVswLjk4NDQ3LCAxLjAxNTA2LCAwXVswLjE3MjgxLCAx
Ljg0NTM3LCAtNS4zMTY1NF1bLTAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuMTEyNjAs
IDEuNTI3ODQsIDBdWzAuMDgwNTU0NSwgMS41NTczMywgLTUuMzE2NzddWy0wLjAwMDAwLCAx
LjAwMDAwLCAwLjAwMDAxXVswLjA1MzYwLCAxLjUxNjYzLCAwXVswLjA0ODcxMzcsIDEuNjMy
MzQsIC01LjMxNTUzXVstMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMV1bMC4wNjg5NywgMS41
MTI3NywgMF1bMC4yNzg0NjEsIDEuNDA5MDEsIC0zLjI4NTI1XVstMC45OTk3NSwgMC4wMDY0
MywgMC4wMjEzNV1bMC4zODkwOCwgMS4zMzU2OCwgMF1bMC4yODQxOTQsIDEuOTIyMjksIC0z
LjQ3MTI1XVstMC45OTk1NSwgMC4wMDQ4MCwgMC4wMjk3N11bMC4zNTk5MSwgMS4zOTY5NCwg
MF1bMC4zMjQ3MjUsIDEuOTA4MzYsIC0xLjU1NjY3XVstMC45NzQxMCwgMC4yMTgxNSwgMC4w
NTk0OF1bMC42Mjg3NywgMS4zOTcwMiwgMF1bMC4yNzE0MSwgMS42NTI1MSwgLTMuNjEzM11b
LTAuNjI2NzksIDAuMTU0OTcsIDAuNzYzNjJdWzAuMzM4MzUsIDEuMzY0NTIsIDBdWzAuMTE1
NDMsIDEuNTM1OTEsIC0zLjY3NTM4XVstMC42NDY4MCwgMC4yMzI5NSwgMC43MjYyMl1bMC4z
Mjg0NCwgMS4zNTA1MSwgMF1bMC4wODA1NTQ1LCAxLjU1NzMzLCAtNS4zMTY3N11bLTAuNTg5
MzMsIDAuMDAyMjIsIDAuODA3ODldWzAuMDg3MTEsIDEuMzUxNTgsIDBdWzAuNTAxNTM0LCAx
Ljg5MDkzLCAwLjczMzUzOV1bLTAuOTc4MDMsIC0wLjE1NjI0LCAwLjEzODAxXVswLjkxMjUy
LCAxLjM5NzAyLCAwXVswLjMzMDUyNSwgMS42OTQ0NiwgMS4xNDUwM11bLTAuOTI3NzIsIC0w
LjMwNzY1LCAwLjIxMTM4XVswLjk3MDcyLCAxLjM2NjgyLCAwXVswLjQ1MTIyNSwgMS4xODYw
MiwgMC4zNzIwMzhdWy0wLjk4OTc0LCAtMC4xMTUyNCwgMC4wODQ0Ml1bMC44NzYwNSwgMS4z
MTIzMiwgMF1bLTAuMzYwOTM4LCAtMC45NTA0NDcsIDEuMTczNjldWy0wLjAwMDAwLCAtMC45
NzU5OSwgLTAuMjE3NzldWzAuMDczNzYsIDEuMDA4MDgsIDBdWzAuNDg5NTUzLCAtMC45NTAy
MTcsIDEuMTU1NjNdWy0wLjAwMDAwLCAtMC45OTcwNSwgLTAuMDc2NzVdWzAuMDczNzYsIDEu
MTI0OTUsIDBdWzAuNDUxMjI1LCAxLjE4NjAyLCAwLjM3MjAzOF1bLTAuMDAwMDAsIC0wLjkz
NjA5LCAtMC4zNTE3Nl1bMC4zNjU5MywgMS4xMjIwNSwgMF1bMC40NzA2MjcsIC0xLjQ2MzE4
LCAtMC43MzUxMjhdWy0wLjk3NTUwLCAwLjIxNzg2LCAwLjAzMDcxXVswLjc0MzgyLCAxLjAx
NDk5LCAwXVswLjQ1NjIwNSwgMS45MDcxOCwgLTEuMzk5OTZdWy0wLjk2NDUzLCAwLjI1NjMy
LCAwLjA2MzA5XVswLjY1MzI4LCAxLjM5NzAyLCAwXVswLjQ4OTU1MywgLTAuOTUwMjE3LCAx
LjE1NTYzXVstMC45OTk2NiwgLTAuMDE0NTIsIC0wLjAyMTQ0XVswLjk4OTU4LCAxLjA3ODEx
LCAwXVswLjQ1NjIwNSwgMS45MDcxOCwgLTEuMzk5OTZdWy0wLjk2NDUzLCAwLjI1NjMyLCAw
LjA2MzA5XVswLjY1MzI4LCAxLjM5NzAyLCAwXVswLjUwMTUzNCwgMS44OTA5MywgMC43MzM1
MzldWy0wLjk3ODAzLCAtMC4xNTYyNCwgMC4xMzgwMV1bMC45MTI1MiwgMS4zOTcwMiwgMF1b
MC40NTEyMjUsIDEuMTg2MDIsIDAuMzcyMDM4XVstMC45ODk3NCwgLTAuMTE1MjQsIDAuMDg0
NDJdWzAuODc2MDUsIDEuMzEyMzIsIDBdWzAuMTcyODEsIDEuODQ1MzcsIC01LjMxNjU0XVst
MC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC4xMTI2MCwgMS41Mjc4NCwgMF1bMC4xNzI2
MzEsIDEuOTM1ODEsIC01LjMxNTg1XVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjEz
MTEyLCAxLjUyNzgyLCAwXVswLjI0NTA5LCAxLjkzNTgzLCAtNS4zMTczOV1bMC4wMDAwMCwg
MS4wMDAwMCwgMC4wMDAwMF1bMC4xMzExMiwgMS41MzY2MiwgMF1bMC4wODA1NTQ1LCAxLjU1
NzMzLCAtNS4zMTY3N11bLTAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDFdWzAuMDUzNjAsIDEu
NTE2NjMsIDBdWzAuMTcyODEsIDEuODQ1MzcsIC01LjMxNjU0XVstMC4wMDAwMCwgMS4wMDAw
MCwgMC4wMDAwMF1bMC4xMTI2MCwgMS41Mjc4NCwgMF1bMC4yMzUwMjMsIDEuNjY1NjMsIC01
LjMxOTIzXVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjA3NTc4LCAxLjUzNTQwLCAw
XVswLjE3MjgxLCAxLjg0NTM3LCAtNS4zMTY1NF1bMC45MzgzMiwgLTAuMDAwMDAsIC0wLjM0
NTc2XVswLjAzOTM1LCAxLjE5OTk3LCAwXVswLjA2NTc0NzksIDEuNjI2MjMsIC00LjUxMzc2
XVswLjg2Mzk3LCAtMC4wMDAwMCwgLTAuNTAzNTRdWzAuMjk4MTYsIDEuMjI0ODEsIDBdWzAu
MTg5ODQ1LCAxLjgzOTI3LCAtNC41MTQ3N11bMC45ODUxMSwgLTAuMDAwMDAsIC0wLjE3MTkx
XVswLjI5ODE2LCAxLjE5OTk3LCAwXVswLjA2NTc0NzksIDEuNjI2MjMsIC00LjUxMzc2XVsw
Ljg2Mzk3LCAtMC4wMDAwMCwgLTAuNTAzNTRdWzAuMjk4MTYsIDEuMjI0ODEsIDBdWzAuMTcy
ODEsIDEuODQ1MzcsIC01LjMxNjU0XVswLjkzODMyLCAtMC4wMDAwMCwgLTAuMzQ1NzZdWzAu
MDM5MzUsIDEuMTk5OTcsIDBdWzAuMDQ4NzEzNywgMS42MzIzNCwgLTUuMzE1NTNdWzAuODYz
OTcsIC0wLjAwMDAwLCAtMC41MDM1NF1bMC4wMzkzNSwgMS4yMjQ4MSwgMF1bMC4xNzI2MzEs
IDEuOTM1ODEsIC01LjMxNTg1XVsxLjAwMDAwLCAtMC4wMDAwMCwgMC4wMDE4N11bMC4wMzkz
NSwgMS4xOTMyMiwgMF1bMC4xODk4NDUsIDEuODM5MjcsIC00LjUxNDc3XVswLjk4NTExLCAt
MC4wMDAwMCwgLTAuMTcxOTFdWzAuMjk4MTYsIDEuMTk5OTcsIDBdWzAuMTg5NjY2LCAxLjky
OTcsIC00LjUxNDA4XVsxLjAwMDAwLCAtMC4wMDAwMCwgMC4wMDE4N11bMC4yOTgxNiwgMS4x
OTMyMiwgMF1bMC4xODk4NDUsIDEuODM5MjcsIC00LjUxNDc3XVswLjk4NTExLCAtMC4wMDAw
MCwgLTAuMTcxOTFdWzAuMjk4MTYsIDEuMTk5OTcsIDBdWzAuMTcyNjMxLCAxLjkzNTgxLCAt
NS4zMTU4NV1bMS4wMDAwMCwgLTAuMDAwMDAsIDAuMDAxODddWzAuMDM5MzUsIDEuMTkzMjIs
IDBdWzAuMTcyODEsIDEuODQ1MzcsIC01LjMxNjU0XVswLjkzODMyLCAtMC4wMDAwMCwgLTAu
MzQ1NzZdWzAuMDM5MzUsIDEuMTk5OTcsIDBdWy0wLjM4MjY4LCAtMS40NzY5NSwgMS4xMzY4
N11bLTAuMDAwMDAsIC0wLjAwMDMyLCAxLjAwMDAwXVswLjcxMTE5LCAxLjg4MDQ1LCAwXVsw
LjQ3MDYyNywgLTEuNDYzMTgsIC0wLjczNTEyOF1bLTAuMDAwMDAsIC0wLjAwMDMyLCAxLjAw
MDAwXVswLjQ3MTMyLCAxLjk5NTI2LCAwXVswLjUwOTk5NywgLTEuNDc2NzEsIDEuMTE3OTFd
Wy0wLjAwMDAwLCAtMC4wMDAzMiwgMS4wMDAwMF1bMC43MTExOSwgMS45OTUyNiwgMF1bLTAu
MzgyNjgsIC0xLjQ3Njk1LCAxLjEzNjg3XVstMC4wMDAwMCwgLTAuOTk4MDEsIDAuMDYzMDNd
WzAuMDAxNTEsIDEuMDA1NzksIDBdWzAuNDg5NTUzLCAtMC45NTAyMTcsIDEuMTU1NjNdWy0w
LjAwMDAwLCAtMC45OTcwNSwgLTAuMDc2NzVdWzAuMDczNzYsIDEuMTI0OTUsIDBdWy0wLjM2
MDkzOCwgLTAuOTUwNDQ3LCAxLjE3MzY5XVstMC4wMDAwMCwgLTAuOTc1OTksIC0wLjIxNzc5
XVswLjA3Mzc2LCAxLjAwODA4LCAwXVstMC4zOTIzNzQsIDEuODkwNjgsIDAuNzUyNTI5XVst
MC4wMDAwMCwgLTAuNDI3MTAsIC0wLjkwNDIwXVswLjQ2Mjk5LCAxLjAxNTgwLCAwXVstMC4y
MDM5MzgsIDEuNjk0MzEsIDEuMTU2MzldWy0wLjAwMDAwLCAtMC40MjcxMCwgLTAuOTA0MjBd
WzAuNDM2NDgsIDEuMDE5MjIsIDBdWzAuMzMwNTI1LCAxLjY5NDQ2LCAxLjE0NTAzXVstMC4w
MDAwMCwgLTAuNDI3MTAsIC0wLjkwNDIwXVswLjQzNjQ4LCAxLjExMzgxLCAwXVstMC4zOTIz
NzQsIDEuODkwNjgsIDAuNzUyNTI5XVstMC4wMDAwMCwgLTAuNDI3MTAsIC0wLjkwNDIwXVsw
LjQ2Mjk5LCAxLjAxNTgwLCAwXVswLjMzMDUyNSwgMS42OTQ0NiwgMS4xNDUwM11bLTAuMDAw
MDAsIC0wLjQyNzEwLCAtMC45MDQyMF1bMC40MzY0OCwgMS4xMTM4MSwgMF1bMC41MDE1MzQs
IDEuODkwOTMsIDAuNzMzNTM5XVstMC4wMDAwMCwgLTAuNDI3MTAsIC0wLjkwNDIwXVswLjQ2
Mjk5LCAxLjExNzIzLCAwXVstMC4yMDM5MzgsIDEuNjk0MzEsIDEuMTU2MzldWy0wLjAwMDAw
LCAtMC41NTcyNiwgMC44MzAzNF1bMC40MzY0OCwgMS4wMTkyMiwgMF1bLTAuMzU3MDgxLCAx
LjE4NTgsIDAuMzg5MjA5XVstMC4wMDAwMCwgLTAuNTU3MjYsIDAuODMwMzRdWzAuMzY1OTMs
IDEuMDEwOTgsIDBdWzAuNDUxMjI1LCAxLjE4NjAyLCAwLjM3MjAzOF1bLTAuMDAwMDAsIC0w
LjU1NzI2LCAwLjgzMDM0XVswLjM2NTkzLCAxLjEyMjA1LCAwXVstMC4yMDM5MzgsIDEuNjk0
MzEsIDEuMTU2MzldWy0wLjAwMDAwLCAtMC41NTcyNiwgMC44MzAzNF1bMC40MzY0OCwgMS4w
MTkyMiwgMF1bMC40NTEyMjUsIDEuMTg2MDIsIDAuMzcyMDM4XVstMC4wMDAwMCwgLTAuNTU3
MjYsIDAuODMwMzRdWzAuMzY1OTMsIDEuMTIyMDUsIDBdWzAuMzMwNTI1LCAxLjY5NDQ2LCAx
LjE0NTAzXVstMC4wMDAwMCwgLTAuNTU3MjYsIDAuODMwMzRdWzAuNDM2NDgsIDEuMTEzODEs
IDBdWzAuMzE3MzMsIDEuMzk1MTQsIC0xLjQ2MzYzXVstMC4xOTI3MywgMC45NTA5NywgMC4y
NDE4OF1bMC40MzI0MSwgMS44OTAyNiwgMF1bMC40NzA2MjcsIC0xLjQ2MzE4LCAtMC43MzUx
MjhdWy0wLjA5NjgzLCAwLjk2MDgyLCAwLjI1OTcwXVswLjAwMzk0LCAxLjg2OTA1LCAwXVsw
LjAwNjY0Mzc2LCAxLjM5NTUzLCAtMS41MTk3Nl1bMC4wMDAwMCwgMC45NjY2NCwgMC4yNTYx
Nl1bMC40MzI0MSwgMS45MzY5MiwgMF1bMC4yMzUwMjMsIDEuNjY1NjMsIC01LjMxOTIzXVsw
LjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjA3NTc4LCAxLjUzNTQwLCAwXVswLjE3Mjgx
LCAxLjg0NTM3LCAtNS4zMTY1NF1bLTAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuMTEy
NjAsIDEuNTI3ODQsIDBdWzAuMjQ1MDksIDEuOTM1ODMsIC01LjMxNzM5XVswLjAwMDAwLCAx
LjAwMDAwLCAwLjAwMDAwXVswLjEzMTEyLCAxLjUzNjYyLCAwXVswLjQ1NjIwNSwgMS45MDcx
OCwgLTEuMzk5OTZdWy0wLjk2NDUzLCAwLjI1NjMyLCAwLjA2MzA5XVswLjY1MzI4LCAxLjM5
NzAyLCAwXVswLjMxNzMzLCAxLjM5NTE0LCAtMS40NjM2M11bLTAuODkyOTcsIDAuNDM5Mjks
IDAuMDk4MThdWzAuNjQzNjQsIDEuMzM1NjgsIDBdWzAuMzI0NzI1LCAxLjkwODM2LCAtMS41
NTY2N11bLTAuOTc0MTAsIDAuMjE4MTUsIDAuMDU5NDhdWzAuNjI4NzcsIDEuMzk3MDIsIDBd
WzAuMjYyNjI1LCAxLjkyOTcyLCAtNC41MTU2M11bMC4wMDAwMCwgLTAuMDAwMDAsIC0xLjAw
MDAwXVswLjI5ODE2LCAxLjE5NTU5LCAwXVswLjE3MjYzMSwgMS45MzU4MSwgLTUuMzE1ODVd
WzAuMDAwMDAsIC0wLjAwMDAwLCAtMS4wMDAwMF1bMC4wMzkzNSwgMS4xOTMyMiwgMF1bMC4x
ODk2NjYsIDEuOTI5NywgLTQuNTE0MDhdWy0wLjAwMDAwLCAwLjAwMDAwLCAtMS4wMDAwMF1b
MC4yOTgxNiwgMS4xOTMyMiwgMF1bMC4xNzI2MzEsIDEuOTM1ODEsIC01LjMxNTg1XVswLjAw
MDAwLCAtMC4wMDAwMCwgLTEuMDAwMDBdWzAuMDM5MzUsIDEuMTkzMjIsIDBdWzAuMjYyNjI1
LCAxLjkyOTcyLCAtNC41MTU2M11bMC4wMDAwMCwgLTAuMDAwMDAsIC0xLjAwMDAwXVswLjI5
ODE2LCAxLjE5NTU5LCAwXVswLjI0NTA5LCAxLjkzNTgzLCAtNS4zMTczOV1bMC4wMDAwMCwg
LTAuMDAwMDAsIC0xLjAwMDAwXVswLjAzOTM1LCAxLjE5NTU4LCAwXVswLjQ4OTU1MywgLTAu
OTUwMjE3LCAxLjE1NTYzXVstMC45OTk2NiwgLTAuMDE0NTIsIC0wLjAyMTQ0XVswLjk4OTU4
LCAxLjA3ODExLCAwXVswLjQ1NjIwNSwgMS45MDcxOCwgLTEuMzk5OTZdWy0wLjk2NDUzLCAw
LjI1NjMyLCAwLjA2MzA5XVswLjY1MzI4LCAxLjM5NzAyLCAwXVswLjQ1MTIyNSwgMS4xODYw
MiwgMC4zNzIwMzhdWy0wLjk4OTc0LCAtMC4xMTUyNCwgMC4wODQ0Ml1bMC44NzYwNSwgMS4z
MTIzMiwgMF1bLTAuMzgyNjgsIC0xLjQ3Njk1LCAxLjEzNjg3XVstMC4wMDAwMCwgLTAuOTk4
MDEsIDAuMDYzMDNdWzAuMDAxNTEsIDEuMDA1NzksIDBdWzAuNTA5OTk3LCAtMS40NzY3MSwg
MS4xMTc5MV1bLTAuMDAwMDAsIC0wLjk5ODAxLCAwLjA2MzAzXVswLjAwMTUxLCAxLjEyNzI0
LCAwXVswLjQ4OTU1MywgLTAuOTUwMjE3LCAxLjE1NTYzXVstMC4wMDAwMCwgLTAuOTk3MDUs
IC0wLjA3Njc1XVswLjA3Mzc2LCAxLjEyNDk1LCAwXVstMC4zNTcwODEsIDEuMTg1OCwgMC4z
ODkyMDldWy0wLjAwMDAwLCAtMC45MzYwOSwgLTAuMzUxNzZdWzAuMzY1OTMsIDEuMDEwOTgs
IDBdWy0wLjM2MDkzOCwgLTAuOTUwNDQ3LCAxLjE3MzY5XVstMC4wMDAwMCwgLTAuOTc1OTks
IC0wLjIxNzc5XVswLjA3Mzc2LCAxLjAwODA4LCAwXVswLjQ1MTIyNSwgMS4xODYwMiwgMC4z
NzIwMzhdWy0wLjAwMDAwLCAtMC45MzYwOSwgLTAuMzUxNzZdWzAuMzY1OTMsIDEuMTIyMDUs
IDBdWzAuMzE3MzMsIDEuMzk1MTQsIC0xLjQ2MzYzXVstMC44OTI5NywgMC40MzkyOSwgMC4w
OTgxOF1bMC42NDM2NCwgMS4zMzU2OCwgMF1bMC40NTYyMDUsIDEuOTA3MTgsIC0xLjM5OTk2
XVstMC45NjQ1MywgMC4yNTYzMiwgMC4wNjMwOV1bMC42NTMyOCwgMS4zOTcwMiwgMF1bMC40
NzA2MjcsIC0xLjQ2MzE4LCAtMC43MzUxMjhdWy0wLjk3NTUwLCAwLjIxNzg2LCAwLjAzMDcx
XVswLjc0MzgyLCAxLjAxNDk5LCAwXVswLjI4NDE5NCwgMS45MjIyOSwgLTMuNDcxMjVdWy0w
Ljk5OTU1LCAwLjAwNDgwLCAwLjAyOTc3XVswLjM1OTkxLCAxLjM5Njk0LCAwXVswLjI3MTQx
LCAxLjY1MjUxLCAtMy42MTMzXVstMC45OTk0NiwgMC4wMDk2OCwgMC4wMzEyOV1bMC4zMzgz
NSwgMS4zNjQ1MiwgMF1bMC4yMzUwMjMsIDEuNjY1NjMsIC01LjMxOTIzXVstMC45OTkzMiwg
MC4wMDAwMSwgMC4wMzY4MF1bMC4wODcxMSwgMS4zNjQ1NCwgMF1bLTAuMDMzNzI1NSwgMS40
MSwgLTMuNDE5ODVdWy0wLjAwMDAwLCAwLjIzNDc1LCAwLjk3MjA2XVswLjMxNDg0LCAxLjgx
Mzk1LCAwXVswLjI3ODQ2MSwgMS40MDkwMSwgLTMuMjg1MjVdWy0wLjA1NDY1LCAwLjExOTY5
LCAwLjk5MTMxXVswLjMzNTQ2LCAxLjc4MzQzLCAwXVswLjAwNjY0Mzc2LCAxLjM5NTUzLCAt
MS41MTk3Nl1bMC4wMDAwMCwgMC4wMDAwMCwgMS4wMDAwMF1bMC41OTI0NiwgMS44MTM5NSwg
MF1bMC4yNzg0NjEsIDEuNDA5MDEsIC0zLjI4NTI1XVstMC4wNTQ2NSwgMC4xMTk2OSwgMC45
OTEzMV1bMC4zMzU0NiwgMS43ODM0MywgMF1bMC4zMTczMywgMS4zOTUxNCwgLTEuNDYzNjNd
Wy0wLjAwMDAxLCAwLjAwMDAwLCAxLjAwMDAwXVswLjYwMTYyLCAxLjc4MzQyLCAwXVswLjAw
NjY0Mzc2LCAxLjM5NTUzLCAtMS41MTk3Nl1bMC4wMDAwMCwgMC4wMDAwMCwgMS4wMDAwMF1b
MC41OTI0NiwgMS44MTM5NSwgMF1bMC4yNzg0NjEsIDEuNDA5MDEsIC0zLjI4NTI1XVstMC45
OTk3NSwgMC4wMDY0MywgMC4wMjEzNV1bMC4zODkwOCwgMS4zMzU2OCwgMF1bMC4zMjQ3MjUs
IDEuOTA4MzYsIC0xLjU1NjY3XVstMC45NzQxMCwgMC4yMTgxNSwgMC4wNTk0OF1bMC42Mjg3
NywgMS4zOTcwMiwgMF1bMC4zMTczMywgMS4zOTUxNCwgLTEuNDYzNjNdWy0wLjg5Mjk3LCAw
LjQzOTI5LCAwLjA5ODE4XVswLjY0MzY0LCAxLjMzNTY4LCAwXVswLjExNTQzLCAxLjUzNTkx
LCAtMy42NzUzOF1bLTAuNjQ2ODAsIDAuMjMyOTUsIDAuNzI2MjJdWzAuMzI4NDQsIDEuMzUw
NTEsIDBdWzAuMjcxNDEsIDEuNjUyNTEsIC0zLjYxMzNdWy0wLjYyNjc5LCAwLjE1NDk3LCAw
Ljc2MzYyXVswLjMzODM1LCAxLjM2NDUyLCAwXVswLjI3ODQ2MSwgMS40MDkwMSwgLTMuMjg1
MjVdWy0wLjY1MDc5LCAwLjQ0NzgzLCAwLjYxMzEyXVswLjM4OTA4LCAxLjMzNTY4LCAwXVsw
LjExNTQzLCAxLjUzNTkxLCAtMy42NzUzOF1bLTAuMDU0ODgsIDAuMjcxODEsIDAuOTYwNzld
WzAuMjc3ODUsIDEuNzk1NTYsIDBdWzAuMjc4NDYxLCAxLjQwOTAxLCAtMy4yODUyNV1bLTAu
MDU0NjUsIDAuMTE5NjksIDAuOTkxMzFdWzAuMzM1NDYsIDEuNzgzNDMsIDBdWy0wLjAzMzcy
NTUsIDEuNDEsIC0zLjQxOTg1XVstMC4wMDAwMCwgMC4yMzQ3NSwgMC45NzIwNl1bMC4zMTQ4
NCwgMS44MTM5NSwgMF1bMC4yNzE0MSwgMS42NTI1MSwgLTMuNjEzM11bLTAuOTk5NDYsIDAu
MDA5NjgsIDAuMDMxMjldWzAuMzM4MzUsIDEuMzY0NTIsIDBdWzAuMjg0MTk0LCAxLjkyMjI5
LCAtMy40NzEyNV1bLTAuOTk5NTUsIDAuMDA0ODAsIDAuMDI5NzddWzAuMzU5OTEsIDEuMzk2
OTQsIDBdWzAuMjc4NDYxLCAxLjQwOTAxLCAtMy4yODUyNV1bLTAuOTk5NzUsIDAuMDA2NDMs
IDAuMDIxMzVdWzAuMzg5MDgsIDEuMzM1NjgsIDBdWzAuMjg0MTk0LCAxLjkyMjI5LCAtMy40
NzEyNV1bLTAuOTk5NTUsIDAuMDA0ODAsIDAuMDI5NzddWzAuMzU5OTEsIDEuMzk2OTQsIDBd
WzAuMjM1MDIzLCAxLjY2NTYzLCAtNS4zMTkyM11bLTAuOTk5MzIsIDAuMDAwMDEsIDAuMDM2
ODBdWzAuMDg3MTEsIDEuMzY0NTQsIDBdWzAuMjQ1MDksIDEuOTM1ODMsIC01LjMxNzM5XVst
MC45OTkzMCwgLTAuMDAwMDcsIDAuMDM3MzVdWzAuMDg3MTEsIDEuMzk2ODgsIDBdWzAuMjcx
NDEsIDEuNjUyNTEsIC0zLjYxMzNdWy0wLjYyNjc5LCAwLjE1NDk3LCAwLjc2MzYyXVswLjMz
ODM1LCAxLjM2NDUyLCAwXVswLjA4MDU1NDUsIDEuNTU3MzMsIC01LjMxNjc3XVstMC41ODkz
MywgMC4wMDIyMiwgMC44MDc4OV1bMC4wODcxMSwgMS4zNTE1OCwgMF1bMC4yMzUwMjMsIDEu
NjY1NjMsIC01LjMxOTIzXVstMC41NzM4MCwgMC4wMDAxMCwgMC44MTg5OV1bMC4wODcxMSwg
MS4zNjQ1NCwgMF1bLTAuNDIyMDQ5LCAtMS40NjM0MiwgLTAuNzE2MTY0XVswLjk3NTUwLCAw
LjIxNzg2LCAwLjAzMDcxXVswLjc0MzgyLCAxLjk5NDU3LCAwXVstMC4zODI2OCwgLTEuNDc2
OTUsIDEuMTM2ODddWzAuOTk5MjAsIDAuMDAwMDEsIC0wLjA0MDAyXVswLjk4NDQ3LCAxLjk5
NDUwLCAwXVstMC4zNjA5MzgsIC0wLjk1MDQ0NywgMS4xNzM2OV1bMC45OTk2NiwgLTAuMDE0
NTIsIC0wLjAyMTQ0XVswLjk4OTU4LCAxLjkzMTQ1LCAwXVstMC4zMjA4NjEsIDEuODQ1MjQs
IC01LjMwNjA1XVswLjAwMDAxLCAxLjAwMDAwLCAwLjAwMDAwXVswLjExMjYwLCAxLjQ2Nzg4
LCAwXVstMC4xOTY3MTgsIDEuNjMyMjcsIC01LjMxMDMxXVswLjAwMDAxLCAxLjAwMDAwLCAw
LjAwMDAxXVswLjA2ODk3LCAxLjQ4Mjk2LCAwXVstMC4yMjg1NDIsIDEuNTU3MjUsIC01LjMx
MDIxXVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAxXVswLjA1MzYwLCAxLjQ3OTA5LCAwXVst
MC4zMzk5MTQsIDEuNDA4ODUsIC0zLjI3MjExXVswLjk5OTc1LCAwLjAwNjQzLCAwLjAyMTM1
XVswLjM4OTA4LCAxLjY2Njk3LCAwXVstMC4zMTI5OTYsIDEuOTA4MTksIC0xLjU0MzEyXVsw
Ljk3NDEwLCAwLjIxODE1LCAwLjA1OTQ4XVswLjYyODc3LCAxLjYwNTYzLCAwXVstMC4zNTM4
MTksIDEuOTIyMTIsIC0zLjQ1NzddWzAuOTk5NTUsIDAuMDA0ODAsIDAuMDI5NzddWzAuMzU5
OTEsIDEuNjA1NzAsIDBdWy0wLjM0NjkzMiwgMS42NTIzNSwgLTMuNjAwMTZdWzAuNjI2Nzks
IDAuMTU0OTcsIDAuNzYzNjJdWzAuMzM4MzUsIDEuNjM4MTIsIDBdWy0wLjIyODU0MiwgMS41
NTcyNSwgLTUuMzEwMjFdWzAuNTg5MzMsIDAuMDAyMjIsIDAuODA3ODldWzAuMDg3MTEsIDEu
NjUxMDYsIDBdWy0wLjE5MzY2NiwgMS41MzU4MiwgLTMuNjY4ODFdWzAuNjQ2ODAsIDAuMjMy
OTUsIDAuNzI2MjJdWzAuMzI4NDQsIDEuNjUyMTMsIDBdWy0wLjE5MzY2NiwgMS41MzU4Miwg
LTMuNjY4ODFdWzAuMDQxMjMsIDAuMjA1NTksIDAuOTc3NzddWzAuMjc3ODUsIDEuODMyMzQs
IDBdWzAuMDgwNTU0NSwgMS41NTczMywgLTUuMzE2NzddWzAuMDAwMDAsIDAuMDA1NDMsIDAu
OTk5OTldWzAuMDM4MDIsIDEuNzk1MzMsIDBdWzAuMTE1NDMsIDEuNTM1OTEsIC0zLjY3NTM4
XVstMC4wNTQ4OCwgMC4yNzE4MSwgMC45NjA3OV1bMC4yNzc4NSwgMS43OTU1NiwgMF1bLTAu
MzkyMzc0LCAxLjg5MDY4LCAwLjc1MjUyOV1bMC45NzgwMywgLTAuMTU2MjQsIDAuMTM4MDFd
WzAuOTEyNTIsIDEuNjA1NjMsIDBdWy0wLjM1NzA4MSwgMS4xODU4LCAwLjM4OTIwOV1bMC45
ODk3NCwgLTAuMTE1MjQsIDAuMDg0NDJdWzAuODc2MDUsIDEuNjkwMzIsIDBdWy0wLjIwMzkz
OCwgMS42OTQzMSwgMS4xNTYzOV1bMC45Mjc3MiwgLTAuMzA3NjUsIDAuMjExMzhdWzAuOTc1
NDMsIDEuNjQyODgsIDBdWy0wLjQyMjA0OSwgLTEuNDYzNDIsIC0wLjcxNjE2NF1bMC45NzU1
MCwgMC4yMTc4NiwgMC4wMzA3MV1bMC43NDM4MiwgMS45OTQ1NywgMF1bLTAuMzYwOTM4LCAt
MC45NTA0NDcsIDEuMTczNjldWzAuOTk5NjYsIC0wLjAxNDUyLCAtMC4wMjE0NF1bMC45ODk1
OCwgMS45MzE0NSwgMF1bLTAuNDM3NzAyLCAxLjkwNjk0LCAtMS4zODA5N11bMC45NjQ1Mywg
MC4yNTYzMiwgMC4wNjMwOV1bMC42NTMyOCwgMS42MDU2MywgMF1bLTAuNDM3NzAyLCAxLjkw
Njk0LCAtMS4zODA5N11bMC45NjQ1MywgMC4yNTYzMiwgMC4wNjMwOV1bMC42NTMyOCwgMS42
MDU2MywgMF1bLTAuMzU3MDgxLCAxLjE4NTgsIDAuMzg5MjA5XVswLjk4OTc0LCAtMC4xMTUy
NCwgMC4wODQ0Ml1bMC44NzYwNSwgMS42OTAzMiwgMF1bLTAuMzkyMzc0LCAxLjg5MDY4LCAw
Ljc1MjUyOV1bMC45NzgwMywgLTAuMTU2MjQsIDAuMTM4MDFdWzAuOTEyNTIsIDEuNjA1NjMs
IDBdWy0wLjMyMDg2MSwgMS44NDUyNCwgLTUuMzA2MDVdWzAuMDAwMDEsIDEuMDAwMDAsIDAu
MDAwMDBdWzAuMTEyNjAsIDEuNDY3ODgsIDBdWy0wLjM5MzE2LCAxLjkzNTY1LCAtNS4zMDM4
M11bMC4wMDAwMSwgMS4wMDAwMCwgLTAuMDAwMDBdWzAuMTMxMTIsIDEuNDU5MTAsIDBdWy0w
LjMyMDcwMSwgMS45MzU2NywgLTUuMzA1MzddWzAuMDAwMDEsIDEuMDAwMDAsIC0wLjAwMDAw
XVswLjEzMTEyLCAxLjQ2NzkwLCAwXVswLjA4MDU1NDUsIDEuNTU3MzMsIC01LjMxNjc3XVst
MC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMV1bMC4wNTM2MCwgMS41MTY2MywgMF1bLTAuMjI4
NTQyLCAxLjU1NzI1LCAtNS4zMTAyMV1bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMV1bMC4w
NTM2MCwgMS40NzkwOSwgMF1bMC4wNDg3MTM3LCAxLjYzMjM0LCAtNS4zMTU1M11bLTAuMDAw
MDAsIDEuMDAwMDAsIDAuMDAwMDFdWzAuMDY4OTcsIDEuNTEyNzcsIDBdWy0wLjIyODU0Miwg
MS41NTcyNSwgLTUuMzEwMjFdWzAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDFdWzAuMDUzNjAs
IDEuNDc5MDksIDBdWy0wLjM4MzAzNCwgMS42NjU0NiwgLTUuMzA2MV1bMC4wMDAwMCwgMS4w
MDAwMCwgLTAuMDAwMDBdWzAuMDc1NzgsIDEuNDYwMzMsIDBdWy0wLjMyMDg2MSwgMS44NDUy
NCwgLTUuMzA2MDVdWzAuMDAwMDEsIDEuMDAwMDAsIDAuMDAwMDBdWzAuMTEyNjAsIDEuNDY3
ODgsIDBdWy0wLjMyMDg2MSwgMS44NDUyNCwgLTUuMzA2MDVdWy0wLjkzODMyLCAwLjAwMDAw
LCAtMC4zNDU3Nl1bMC4wMzkzNSwgMS4yNzk0NCwgMF1bLTAuMzAzODI3LCAxLjgzOTEzLCAt
NC41MDQyOV1bLTAuOTg1MTEsIDAuMDAwMDAsIC0wLjE3MTkxXVswLjI5ODE2LCAxLjI3OTQ0
LCAwXVstMC4xNzk2ODMsIDEuNjI2MTYsIC00LjUwODU1XVstMC44NjM5NywgMC4wMDAwMCwg
LTAuNTAzNTRdWzAuMjk4MTYsIDEuMjU0NjAsIDBdWy0wLjE3OTY4MywgMS42MjYxNiwgLTQu
NTA4NTVdWy0wLjg2Mzk3LCAwLjAwMDAwLCAtMC41MDM1NF1bMC4yOTgxNiwgMS4yNTQ2MCwg
MF1bLTAuMTk2NzE4LCAxLjYzMjI3LCAtNS4zMTAzMV1bLTAuODYzOTcsIDAuMDAwMDAsIC0w
LjUwMzU0XVswLjAzOTM1LCAxLjI1NDYwLCAwXVstMC4zMjA4NjEsIDEuODQ1MjQsIC01LjMw
NjA1XVstMC45MzgzMiwgMC4wMDAwMCwgLTAuMzQ1NzZdWzAuMDM5MzUsIDEuMjc5NDQsIDBd
WzAuMDY1NzQ3OSwgMS42MjYyMywgLTQuNTEzNzZdWzAuMDAwMDAsIC0wLjAwMDAwLCAtMS4w
MDAwMF1bMC4yOTgxNiwgMS4yMjQ4MSwgMF1bMC4wNDg3MTM3LCAxLjYzMjM0LCAtNS4zMTU1
M11bMC4wMDAwMCwgLTAuMDAwMDAsIC0xLjAwMDAwXVswLjAzOTM1LCAxLjIyNDgxLCAwXVst
MC4xOTY3MTgsIDEuNjMyMjcsIC01LjMxMDMxXVswLjAwMDAwLCAtMC4wMDAwMCwgLTEuMDAw
MDBdWzAuMDM5MzUsIDEuMjU0NjAsIDBdWy0wLjMyMDcwMSwgMS45MzU2NywgLTUuMzA1Mzdd
Wy0xLjAwMDAwLCAwLjAwMDAwLCAwLjAwMTg3XVswLjAzOTM1LCAxLjI4NjE5LCAwXVstMC4z
MDM2NjcsIDEuOTI5NTcsIC00LjUwMzZdWy0xLjAwMDAwLCAwLjAwMDAwLCAwLjAwMTg3XVsw
LjI5ODE2LCAxLjI4NjE5LCAwXVstMC4zMDM4MjcsIDEuODM5MTMsIC00LjUwNDI5XVstMC45
ODUxMSwgMC4wMDAwMCwgLTAuMTcxOTFdWzAuMjk4MTYsIDEuMjc5NDQsIDBdWy0wLjMwMzgy
NywgMS44MzkxMywgLTQuNTA0MjldWy0wLjk4NTExLCAwLjAwMDAwLCAtMC4xNzE5MV1bMC4y
OTgxNiwgMS4yNzk0NCwgMF1bLTAuMzIwODYxLCAxLjg0NTI0LCAtNS4zMDYwNV1bLTAuOTM4
MzIsIDAuMDAwMDAsIC0wLjM0NTc2XVswLjAzOTM1LCAxLjI3OTQ0LCAwXVstMC4zMjA3MDEs
IDEuOTM1NjcsIC01LjMwNTM3XVstMS4wMDAwMCwgMC4wMDAwMCwgMC4wMDE4N11bMC4wMzkz
NSwgMS4yODYxOSwgMF1bLTAuMzgyNjgsIC0xLjQ3Njk1LCAxLjEzNjg3XVstMC4wMDAwMCwg
LTAuMDAwMzIsIDEuMDAwMDBdWzAuNzExMTksIDEuODgwNDUsIDBdWy0wLjQyMjA0OSwgLTEu
NDYzNDIsIC0wLjcxNjE2NF1bLTAuMDAwMDAsIC0wLjAwMDMyLCAxLjAwMDAwXVswLjQ3MTMy
LCAxLjg4MDQ1LCAwXVswLjQ3MDYyNywgLTEuNDYzMTgsIC0wLjczNTEyOF1bLTAuMDAwMDAs
IC0wLjAwMDMyLCAxLjAwMDAwXVswLjQ3MTMyLCAxLjk5NTI2LCAwXVswLjA0ODcxMzcsIDEu
NjMyMzQsIC01LjMxNTUzXVstMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMV1bMC4wNjg5Nywg
MS41MTI3NywgMF1bLTAuMjI4NTQyLCAxLjU1NzI1LCAtNS4zMTAyMV1bMC4wMDAwMCwgMS4w
MDAwMCwgMC4wMDAwMV1bMC4wNTM2MCwgMS40NzkwOSwgMF1bLTAuMTk2NzE4LCAxLjYzMjI3
LCAtNS4zMTAzMV1bMC4wMDAwMSwgMS4wMDAwMCwgMC4wMDAwMV1bMC4wNjg5NywgMS40ODI5
NiwgMF1bMC4wNjU3NDc5LCAxLjYyNjIzLCAtNC41MTM3Nl1bMC4wMDAwMCwgLTAuMDAwMDAs
IC0xLjAwMDAwXVswLjI5ODE2LCAxLjIyNDgxLCAwXVstMC4xOTY3MTgsIDEuNjMyMjcsIC01
LjMxMDMxXVswLjAwMDAwLCAtMC4wMDAwMCwgLTEuMDAwMDBdWzAuMDM5MzUsIDEuMjU0NjAs
IDBdWy0wLjE3OTY4MywgMS42MjYxNiwgLTQuNTA4NTVdWzAuMDAwMDAsIC0wLjAwMDAwLCAt
MS4wMDAwMF1bMC4yOTgxNiwgMS4yNTQ2MCwgMF1bLTAuMzAxMzc4LCAxLjM5NDk3LCAtMS40
NTA0OV1bMC4xOTI3MywgMC45NTA5NywgMC4yNDE4OF1bMC40MzI0MSwgMS45ODMwNSwgMF1b
MC4wMDY2NDM3NiwgMS4zOTU1MywgLTEuNTE5NzZdWzAuMDAwMDAsIDAuOTY2NjQsIDAuMjU2
MTZdWzAuNDMyNDEsIDEuOTM2OTIsIDBdWy0wLjQyMjA0OSwgLTEuNDYzNDIsIC0wLjcxNjE2
NF1bMC4wOTY4MywgMC45NjA4MiwgMC4yNTk3MF1bMC4wMDM5NCwgMS45OTc3OCwgMF1bLTAu
MzgzMDM0LCAxLjY2NTQ2LCAtNS4zMDYxXVswLjAwMDAwLCAxLjAwMDAwLCAtMC4wMDAwMF1b
MC4wNzU3OCwgMS40NjAzMywgMF1bLTAuMzkzMTYsIDEuOTM1NjUsIC01LjMwMzgzXVswLjAw
MDAxLCAxLjAwMDAwLCAtMC4wMDAwMF1bMC4xMzExMiwgMS40NTkxMCwgMF1bLTAuMzIwODYx
LCAxLjg0NTI0LCAtNS4zMDYwNV1bMC4wMDAwMSwgMS4wMDAwMCwgMC4wMDAwMF1bMC4xMTI2
MCwgMS40Njc4OCwgMF1bLTAuNDM3NzAyLCAxLjkwNjk0LCAtMS4zODA5N11bMC45NjQ1Mywg
MC4yNTYzMiwgMC4wNjMwOV1bMC42NTMyOCwgMS42MDU2MywgMF1bLTAuMzEyOTk2LCAxLjkw
ODE5LCAtMS41NDMxMl1bMC45NzQxMCwgMC4yMTgxNSwgMC4wNTk0OF1bMC42Mjg3NywgMS42
MDU2MywgMF1bLTAuMzAxMzc4LCAxLjM5NDk3LCAtMS40NTA0OV1bMC44OTI5NywgMC40Mzky
OSwgMC4wOTgxOF1bMC42NDM2NCwgMS42NjY5NywgMF1bLTAuMzc2NjI3LCAxLjkyOTU1LCAt
NC41MDIwNV1bLTAuMDAwMDAsIC0wLjAwMDAwLCAtMS4wMDAwMF1bMC4yOTgxNiwgMS4yODM4
MiwgMF1bLTAuMzAzNjY3LCAxLjkyOTU3LCAtNC41MDM2XVswLjAwMDAwLCAtMC4wMDAwMCwg
LTEuMDAwMDBdWzAuMjk4MTYsIDEuMjg2MTksIDBdWy0wLjMyMDcwMSwgMS45MzU2NywgLTUu
MzA1MzddWy0wLjAwMDAwLCAtMC4wMDAwMCwgLTEuMDAwMDBdWzAuMDM5MzUsIDEuMjg2MTks
IDBdWy0wLjMyMDcwMSwgMS45MzU2NywgLTUuMzA1MzddWy0wLjAwMDAwLCAtMC4wMDAwMCwg
LTEuMDAwMDBdWzAuMDM5MzUsIDEuMjg2MTksIDBdWy0wLjM5MzE2LCAxLjkzNTY1LCAtNS4z
MDM4M11bLTAuMDAwMDAsIC0wLjAwMDAwLCAtMS4wMDAwMF1bMC4wMzkzNSwgMS4yODM4Mywg
MF1bLTAuMzc2NjI3LCAxLjkyOTU1LCAtNC41MDIwNV1bLTAuMDAwMDAsIC0wLjAwMDAwLCAt
MS4wMDAwMF1bMC4yOTgxNiwgMS4yODM4MiwgMF1bLTAuMzYwOTM4LCAtMC45NTA0NDcsIDEu
MTczNjldWzAuOTk5NjYsIC0wLjAxNDUyLCAtMC4wMjE0NF1bMC45ODk1OCwgMS45MzE0NSwg
MF1bLTAuMzU3MDgxLCAxLjE4NTgsIDAuMzg5MjA5XVswLjk4OTc0LCAtMC4xMTUyNCwgMC4w
ODQ0Ml1bMC44NzYwNSwgMS42OTAzMiwgMF1bLTAuNDM3NzAyLCAxLjkwNjk0LCAtMS4zODA5
N11bMC45NjQ1MywgMC4yNTYzMiwgMC4wNjMwOV1bMC42NTMyOCwgMS42MDU2MywgMF1bLTAu
MzAxMzc4LCAxLjM5NDk3LCAtMS40NTA0OV1bMC44OTI5NywgMC40MzkyOSwgMC4wOTgxOF1b
MC42NDM2NCwgMS42NjY5NywgMF1bLTAuNDIyMDQ5LCAtMS40NjM0MiwgLTAuNzE2MTY0XVsw
Ljk3NTUwLCAwLjIxNzg2LCAwLjAzMDcxXVswLjc0MzgyLCAxLjk5NDU3LCAwXVstMC40Mzc3
MDIsIDEuOTA2OTQsIC0xLjM4MDk3XVswLjk2NDUzLCAwLjI1NjMyLCAwLjA2MzA5XVswLjY1
MzI4LCAxLjYwNTYzLCAwXVswLjAwNjY0Mzc2LCAxLjM5NTUzLCAtMS41MTk3Nl1bMC4wMDAw
MCwgMC45NjY2NCwgMC4yNTYxNl1bMC40MzI0MSwgMS45MzY5MiwgMF1bMC40NzA2MjcsIC0x
LjQ2MzE4LCAtMC43MzUxMjhdWy0wLjA5NjgzLCAwLjk2MDgyLCAwLjI1OTcwXVswLjAwMzk0
LCAxLjg2OTA1LCAwXVstMC40MjIwNDksIC0xLjQ2MzQyLCAtMC43MTYxNjRdWzAuMDk2ODMs
IDAuOTYwODIsIDAuMjU5NzBdWzAuMDAzOTQsIDEuOTk3NzgsIDBdWy0wLjM1MzgxOSwgMS45
MjIxMiwgLTMuNDU3N11bMC45OTk1NSwgMC4wMDQ4MCwgMC4wMjk3N11bMC4zNTk5MSwgMS42
MDU3MCwgMF1bLTAuMzgzMDM0LCAxLjY2NTQ2LCAtNS4zMDYxXVswLjk5OTMyLCAwLjAwMDAx
LCAwLjAzNjgwXVswLjA4NzExLCAxLjYzODExLCAwXVstMC4zNDY5MzIsIDEuNjUyMzUsIC0z
LjYwMDE2XVswLjk5OTQ2LCAwLjAwOTY4LCAwLjAzMTI5XVswLjMzODM1LCAxLjYzODEyLCAw
XVstMC4wMzM3MjU1LCAxLjQxLCAtMy40MTk4NV1bLTAuMDAwMDAsIDAuMjM0NzUsIDAuOTcy
MDZdWzAuMzE0ODQsIDEuODEzOTUsIDBdWzAuMDA2NjQzNzYsIDEuMzk1NTMsIC0xLjUxOTc2
XVswLjAwMDAwLCAwLjAwMDAwLCAxLjAwMDAwXVswLjU5MjQ2LCAxLjgxMzk1LCAwXVstMC4z
Mzk5MTQsIDEuNDA4ODUsIC0zLjI3MjExXVswLjA1NDY1LCAwLjExOTY5LCAwLjk5MTMxXVsw
LjMzNTQ2LCAxLjg0NDQ3LCAwXVstMC4zMzk5MTQsIDEuNDA4ODUsIC0zLjI3MjExXVswLjA1
NDY1LCAwLjExOTY5LCAwLjk5MTMxXVswLjMzNTQ2LCAxLjg0NDQ3LCAwXVswLjAwNjY0Mzc2
LCAxLjM5NTUzLCAtMS41MTk3Nl1bMC4wMDAwMCwgMC4wMDAwMCwgMS4wMDAwMF1bMC41OTI0
NiwgMS44MTM5NSwgMF1bLTAuMzAxMzc4LCAxLjM5NDk3LCAtMS40NTA0OV1bMC4wMDAwMSwg
MC4wMDAwMCwgMS4wMDAwMF1bMC42MDE2MiwgMS44NDQ0OSwgMF1bLTAuMzM5OTE0LCAxLjQw
ODg1LCAtMy4yNzIxMV1bMC45OTk3NSwgMC4wMDY0MywgMC4wMjEzNV1bMC4zODkwOCwgMS42
NjY5NywgMF1bLTAuMzAxMzc4LCAxLjM5NDk3LCAtMS40NTA0OV1bMC44OTI5NywgMC40Mzky
OSwgMC4wOTgxOF1bMC42NDM2NCwgMS42NjY5NywgMF1bLTAuMzEyOTk2LCAxLjkwODE5LCAt
MS41NDMxMl1bMC45NzQxMCwgMC4yMTgxNSwgMC4wNTk0OF1bMC42Mjg3NywgMS42MDU2Mywg
MF1bLTAuMTkzNjY2LCAxLjUzNTgyLCAtMy42Njg4MV1bMC42NDY4MCwgMC4yMzI5NSwgMC43
MjYyMl1bMC4zMjg0NCwgMS42NTIxMywgMF1bLTAuMzM5OTE0LCAxLjQwODg1LCAtMy4yNzIx
MV1bMC42NTA4MCwgMC40NDc4MywgMC42MTMxMl1bMC4zODkwOCwgMS42NjY5NywgMF1bLTAu
MzQ2OTMyLCAxLjY1MjM1LCAtMy42MDAxNl1bMC42MjY3OSwgMC4xNTQ5NywgMC43NjM2Ml1b
MC4zMzgzNSwgMS42MzgxMiwgMF1bMC4xMTU0MywgMS41MzU5MSwgLTMuNjc1MzhdWy0wLjA1
NDg4LCAwLjI3MTgxLCAwLjk2MDc5XVswLjI3Nzg1LCAxLjc5NTU2LCAwXVstMC4wMzM3MjU1
LCAxLjQxLCAtMy40MTk4NV1bLTAuMDAwMDAsIDAuMjM0NzUsIDAuOTcyMDZdWzAuMzE0ODQs
IDEuODEzOTUsIDBdWy0wLjE5MzY2NiwgMS41MzU4MiwgLTMuNjY4ODFdWzAuMDQxMjMsIDAu
MjA1NTksIDAuOTc3NzddWzAuMjc3ODUsIDEuODMyMzQsIDBdWy0wLjE5MzY2NiwgMS41MzU4
MiwgLTMuNjY4ODFdWzAuMDQxMjMsIDAuMjA1NTksIDAuOTc3NzddWzAuMjc3ODUsIDEuODMy
MzQsIDBdWy0wLjAzMzcyNTUsIDEuNDEsIC0zLjQxOTg1XVstMC4wMDAwMCwgMC4yMzQ3NSwg
MC45NzIwNl1bMC4zMTQ4NCwgMS44MTM5NSwgMF1bLTAuMzM5OTE0LCAxLjQwODg1LCAtMy4y
NzIxMV1bMC4wNTQ2NSwgMC4xMTk2OSwgMC45OTEzMV1bMC4zMzU0NiwgMS44NDQ0NywgMF1b
LTAuMzQ2OTMyLCAxLjY1MjM1LCAtMy42MDAxNl1bMC45OTk0NiwgMC4wMDk2OCwgMC4wMzEy
OV1bMC4zMzgzNSwgMS42MzgxMiwgMF1bLTAuMzM5OTE0LCAxLjQwODg1LCAtMy4yNzIxMV1b
MC45OTk3NSwgMC4wMDY0MywgMC4wMjEzNV1bMC4zODkwOCwgMS42NjY5NywgMF1bLTAuMzUz
ODE5LCAxLjkyMjEyLCAtMy40NTc3XVswLjk5OTU1LCAwLjAwNDgwLCAwLjAyOTc3XVswLjM1
OTkxLCAxLjYwNTcwLCAwXVstMC4zNTM4MTksIDEuOTIyMTIsIC0zLjQ1NzddWzAuOTk5NTUs
IDAuMDA0ODAsIDAuMDI5NzddWzAuMzU5OTEsIDEuNjA1NzAsIDBdWy0wLjM5MzE2LCAxLjkz
NTY1LCAtNS4zMDM4M11bMC45OTkzMCwgLTAuMDAwMDgsIDAuMDM3MzVdWzAuMDg3MTEsIDEu
NjA1NzcsIDBdWy0wLjM4MzAzNCwgMS42NjU0NiwgLTUuMzA2MV1bMC45OTkzMiwgMC4wMDAw
MSwgMC4wMzY4MF1bMC4wODcxMSwgMS42MzgxMSwgMF1bLTAuMTkzNjY2LCAxLjUzNTgyLCAt
My42Njg4MV1bMC4wNDEyMywgMC4yMDU1OSwgMC45Nzc3N11bMC4yNzc4NSwgMS44MzIzNCwg
MF1bLTAuMjI4NTQyLCAxLjU1NzI1LCAtNS4zMTAyMV1bMC4wMDAwMCwgMC4wMDU0MywgMC45
OTk5OV1bMC4wMzgwMiwgMS44MzI1NywgMF1bMC4wODA1NTQ1LCAxLjU1NzMzLCAtNS4zMTY3
N11bMC4wMDAwMCwgMC4wMDU0MywgMC45OTk5OV1bMC4wMzgwMiwgMS43OTUzMywgMF1bLTAu
MzQ2OTMyLCAxLjY1MjM1LCAtMy42MDAxNl1bMC42MjY3OSwgMC4xNTQ5NywgMC43NjM2Ml1b
MC4zMzgzNSwgMS42MzgxMiwgMF1bLTAuMzgzMDM0LCAxLjY2NTQ2LCAtNS4zMDYxXVswLjU3
MzgwLCAwLjAwMDEwLCAwLjgxODk5XVswLjA4NzExLCAxLjYzODExLCAwXVstMC4yMjg1NDIs
IDEuNTU3MjUsIC01LjMxMDIxXVswLjU4OTMzLCAwLjAwMjIyLCAwLjgwNzg5XVswLjA4NzEx
LCAxLjY1MTA2LCAwXVswLjA0MzAwNDksIDIuNjI2OTgsIDAuMjA3NTc5XVswLjk3MDg0LCAw
LjIzNDk1LCAwLjA0NzcwXVswLjIwOTAxLCAxLjE3OTg1LCAwXVstMC4wMTgwMTc2LCAyLjE0
Nzc0LCAwLjU4ODA1N11bMC45OTI2OCwgMC4xMTgzNCwgMC4wMjQwM11bMC4xMzkyMywgMS4y
NTc4NSwgMF1bLTAuMDIwODA5NCwgMi43ODAwNSwgMC40NjQ3MDldWzAuOTkyNjgsIDAuMTE4
MzQsIDAuMDI0MDNdWzAuMjMxNzMsIDEuMjMxNzMsIDBdWy0wLjAxNjU2NjEsIDIuNjg5ODQs
IDAuNjYzMzAyXVsxLjAwMDAwLCAtMC4wMDAwMCwgLTAuMDAwMDBdWzAuMjE4NzMsIDEuMjcy
MzUsIDBdWy0wLjAyMDgwOTQsIDIuNzgwMDUsIDAuNDY0NzA5XVswLjk5MjY4LCAwLjExODM0
LCAwLjAyNDAzXVswLjIzMTczLCAxLjIzMTczLCAwXVstMC4wMTgwMTc2LCAyLjE0Nzc0LCAw
LjU4ODA1N11bMC45OTI2OCwgMC4xMTgzNCwgMC4wMjQwM11bMC4xMzkyMywgMS4yNTc4NSwg
MF1bMC4xMTc1OTksIDIuNzgwMDksIDAuNDYxNzY4XVstMC45OTI2OCwgMC4xMTgzNCwgMC4w
MjQwM11bMC4yMzE3MywgMS4yMzE3MywgMF1bMC4xMjAzOSwgMi4xNDc3OCwgMC41ODUxMTZd
Wy0wLjk5MjY4LCAwLjExODM0LCAwLjAyNDAzXVswLjEzOTIzLCAxLjI1Nzg1LCAwXVswLjA0
MzAwNDksIDIuNjI2OTgsIDAuMjA3NTc5XVstMC45NzA4NCwgMC4yMzQ5NSwgMC4wNDc3MF1b
MC4yMDkwMSwgMS4xNzk4NSwgMF1bMC4xMjAzOSwgMi4xNDc3OCwgMC41ODUxMTZdWy0wLjk5
MjY4LCAwLjExODM0LCAwLjAyNDAzXVswLjEzOTIzLCAxLjI1Nzg1LCAwXVswLjExNzU5OSwg
Mi43ODAwOSwgMC40NjE3NjhdWy0wLjk5MjY4LCAwLjExODM0LCAwLjAyNDAzXVswLjIzMTcz
LCAxLjIzMTczLCAwXVswLjEyMTg0MiwgMi42ODk4OCwgMC42NjAzNjJdWy0xLjAwMDAwLCAw
LjAwMDAwLCAwLjAwMDAwXVswLjIxODczLCAxLjI3MjM1LCAwXVswLjEyMTg0MiwgMi42ODk4
OCwgMC42NjAzNjJdWzAuMDAwMDAsIC0wLjk5MTUyLCAwLjEyOTk2XVswLjY0NTU0LCAxLjUw
NTgwLCAwXVstMC4wMTY1NjYxLCAyLjY4OTg0LCAwLjY2MzMwMl1bMC4wMDAwMCwgLTAuOTkx
NTIsIDAuMTI5OTZdWzAuNjkxODMsIDEuNTA1ODAsIDBdWy0wLjAxODAxNzYsIDIuMTQ3NzQs
IDAuNTg4MDU3XVswLjAwMDAwLCAtMC45OTE1MiwgMC4xMjk5Nl1bMC42OTE4MywgMS40OTg1
NSwgMF1bLTAuMDE4MDE3NiwgMi4xNDc3NCwgMC41ODgwNTddWzAuMDAwMDAsIC0wLjk5MTUy
LCAwLjEyOTk2XVswLjY5MTgzLCAxLjQ5ODU1LCAwXVswLjEyMDM5LCAyLjE0Nzc4LCAwLjU4
NTExNl1bMC4wMDAwMCwgLTAuOTkxNTIsIDAuMTI5OTZdWzAuNjQ1NTQsIDEuNDk4NTUsIDBd
WzAuMTIxODQyLCAyLjY4OTg4LCAwLjY2MDM2Ml1bMC4wMDAwMCwgLTAuOTkxNTIsIDAuMTI5
OTZdWzAuNjQ1NTQsIDEuNTA1ODAsIDBdWzAuMTE3NTk5LCAyLjc4MDA5LCAwLjQ2MTc2OF1b
LTAuMDAwMDAsIC0wLjQwNjU0LCAtMC45MTM2M11bMC42NDU1NCwgMS40ODU0NywgMF1bLTAu
MDIwODA5NCwgMi43ODAwNSwgMC40NjQ3MDldWy0wLjAwMDAwLCAtMC40MDY1NCwgLTAuOTEz
NjNdWzAuNjkxODMsIDEuNDg1NDcsIDBdWy0wLjAxNjU2NjEsIDIuNjg5ODQsIDAuNjYzMzAy
XVstMC4wMDAwMCwgLTAuNDA2NTQsIC0wLjkxMzYzXVswLjY5MTgzLCAxLjUwNTgwLCAwXVst
MC4wMTY1NjYxLCAyLjY4OTg0LCAwLjY2MzMwMl1bLTAuMDAwMDAsIC0wLjQwNjU0LCAtMC45
MTM2M11bMC42OTE4MywgMS41MDU4MCwgMF1bMC4xMjE4NDIsIDIuNjg5ODgsIDAuNjYwMzYy
XVstMC4wMDAwMCwgLTAuNDA2NTQsIC0wLjkxMzYzXVswLjY0NTU0LCAxLjUwNTgwLCAwXVsw
LjExNzU5OSwgMi43ODAwOSwgMC40NjE3NjhdWy0wLjAwMDAwLCAtMC40MDY1NCwgLTAuOTEz
NjNdWzAuNjQ1NTQsIDEuNDg1NDcsIDBdWy0wLjAyMDgwOTQsIDIuNzgwMDUsIDAuNDY0NzA5
XVswLjAwMDAwLCAwLjUyMDE5LCAtMC44NTQwNV1bMC42OTE4MywgMS40ODU0NywgMF1bMC4x
MTc1OTksIDIuNzgwMDksIDAuNDYxNzY4XVswLjAwMDAwLCAwLjUyMDE5LCAtMC44NTQwNV1b
MC42NDU1NCwgMS40ODU0NywgMF1bMC4wNDMwMDQ5LCAyLjYyNjk4LCAwLjIwNzU3OV1bMC4w
MDAwMCwgMC41MjAxOSwgLTAuODU0MDVdWzAuNjY4NjksIDEuNDU5NTEsIDBdWzAuMzAyNzAx
LCAxLjY4MDg0LCAtMi42Nzg0OF1bLTAuOTQ5MDcsIC0wLjE1NDYyLCAwLjI3NDUwXVswLjQ2
ODY0LCAxLjM2OTAyLCAwXVswLjI5NTE3OCwgMS41NDU2NiwgLTIuODU4OTZdWy0wLjk1MjA2
LCAtMC4xMDY3NCwgMC4yODY2N11bMC40NDQ1NCwgMS4zNTAyNiwgMF1bMC40MjM1OTMsIDEu
OTA5NzYsIC0zLjA3MTldWy0wLjkxMDMzLCAtMC4wOTA5NCwgMC40MDM3N11bMC40MTYzNywg
MS4zOTcxNCwgMF1bMC40MjM1OTMsIDEuOTA5NzYsIC0zLjA3MTldWzAuMDAwMDAsIDEuMDAw
MDAsIDAuMDAwMDBdWzAuNDE2MzcsIDEuMzk3MTQsIDBdWzAuMjg4ODkxLCAxLjUxMzg1LCAt
My4wNzIwNV1bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC40MTYzNywgMS4zNDU2Nywg
MF1bMC4yOTU1NDcsIDEuOTA5NzMsIC0zLjA2OTE4XVswLjAwMDAwLCAxLjAwMDAwLCAwLjAw
MDAwXVswLjQwOTExLCAxLjM5NzE0LCAwXVswLjQyMzU5MywgMS45MDk3NiwgLTMuMDcxOV1b
LTAuOTEwMzMsIC0wLjA5MDk0LCAwLjQwMzc3XVswLjQxNjM3LCAxLjM5NzE0LCAwXVswLjI5
NTE3OCwgMS41NDU2NiwgLTIuODU4OTZdWy0wLjk1MjA2LCAtMC4xMDY3NCwgMC4yODY2N11b
MC40NDQ1NCwgMS4zNTAyNiwgMF1bMC4yODg4OTEsIDEuNTEzODUsIC0zLjA3MjA1XVstMC45
NDU3OCwgLTAuMDQyNzAsIDAuMzIxOThdWzAuNDE2MzcsIDEuMzQ1NjcsIDBdWzAuNDIzNTkz
LCAxLjkwOTc2LCAtMy4wNzE5XVstMC45MTAzMywgLTAuMDkwOTQsIDAuNDAzNzddWzAuNDE2
MzcsIDEuMzk3MTQsIDBdWzAuNDMzNzgxLCAxLjkwNTE4LCAtMi40NzA1M11bLTAuNzA5MzAs
IC0wLjAwMzA1LCAwLjcwNDkwXVswLjUwMDY4LCAxLjM5NzE0LCAwXVswLjMxMDE0NSwgMS43
ODEwMSwgLTIuNDgxMzVdWy0wLjg1MjUwLCAtMC4wNzMyMCwgMC41MTc1OF1bMC40OTkxNSwg
MS4zODI5OCwgMF1bMC40MzM3ODEsIDEuOTA1MTgsIC0yLjQ3MDUzXVswLjAwMDAwLCAtMC45
OTQ5OCwgMC4xMDAwNl1bMC41MDA2OCwgMS4zOTcxNCwgMF1bMC4zMTAyOTUsIDEuOTA1MTUs
IC0yLjQ2NzkxXVswLjAwMDAwLCAtMC45OTQ5OCwgMC4xMDAwNl1bMC41MDA2OCwgMS4zOTcx
NCwgMF1bMC4zMTAxNDUsIDEuNzgxMDEsIC0yLjQ4MTM1XVswLjAwMDAwLCAtMC45OTQ5OCwg
MC4xMDAwNl1bMC40OTkxNSwgMS4zODI5OCwgMF1bMC4zMTAxNDUsIDEuNzgxMDEsIC0yLjQ4
MTM1XVstMC44NTI1MCwgLTAuMDczMjAsIDAuNTE3NThdWzAuNDk5MTUsIDEuMzgyOTgsIDBd
WzAuMzAyNzAxLCAxLjY4MDg0LCAtMi42Nzg0OF1bLTAuOTQ5MDcsIC0wLjE1NDYyLCAwLjI3
NDUwXVswLjQ2ODY0LCAxLjM2OTAyLCAwXVswLjQyMzU5MywgMS45MDk3NiwgLTMuMDcxOV1b
LTAuOTEwMzMsIC0wLjA5MDk0LCAwLjQwMzc3XVswLjQxNjM3LCAxLjM5NzE0LCAwXVswLjUw
MjEwOSwgMS45MTE3NiwgLTAuOTA4MzY0XVstMC44OTc3NiwgMC4wMDAwMCwgMC40NDA0OF1b
MC43MjM0MiwgMS4zOTc1MCwgMF1bMC4zMjAyNTQsIDEuNTcyODcsIC0xLjUzNDc0XVstMC44
OTc3NiwgMC4wMDAwMCwgMC40NDA0OF1bMC42MDYxNSwgMS4zNTUzOCwgMF1bMC4zMDU3NDgs
IDEuNTc4MDcsIC0yLjIxNzUxXVstMC44OTc3NiwgMC4wMDAwMCwgMC40NDA0OF1bMC41Mzcz
NCwgMS4zNTUzOCwgMF1bMC4zMDU3NDgsIDEuNTc4MDcsIC0yLjIxNzUxXVstMC44OTc3Niwg
MC4wMDAwMCwgMC40NDA0OF1bMC41MzczNCwgMS4zNTUzOCwgMF1bMC40NzQyNzUsIDEuOTIx
NzQsIC0yLjIxODQ3XVstMC44OTc3NiwgMC4wMDAwMCwgMC40NDA0OF1bMC41MzczNCwgMS4z
OTc1MCwgMF1bMC41MDIxMDksIDEuOTExNzYsIC0wLjkwODM2NF1bLTAuODk3NzYsIDAuMDAw
MDAsIDAuNDQwNDhdWzAuNzIzNDIsIDEuMzk3NTAsIDBdWzAuNTAyMTA5LCAxLjkxMTc2LCAt
MC45MDgzNjRdWzAuMDAwMDAsIDAuMDAwMDAsIC0xLjAwMDAwXVswLjcyMzQyLCAxLjM5NzUw
LCAwXVswLjQ3NDI3NSwgMS45MjE3NCwgLTIuMjE4NDddWzAuMDAwMDAsIDAuMDAwMDAsIC0x
LjAwMDAwXVswLjUzNzM0LCAxLjM5NzUwLCAwXVswLjMxMTQxMywgMS45MjE3LCAtMi4yMTUw
MV1bMC4wMDAwMCwgMC4wMDAwMCwgLTEuMDAwMDBdWzAuNTM3MzQsIDEuMzk3NTAsIDBdWzAu
MzExNDEzLCAxLjkyMTcsIC0yLjIxNTAxXVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVsw
LjUzNzM0LCAxLjM5NzUwLCAwXVswLjQ3NDI3NSwgMS45MjE3NCwgLTIuMjE4NDddWzAuMDAw
MDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNTM3MzQsIDEuMzk3NTAsIDBdWzAuMzA1NzQ4LCAx
LjU3ODA3LCAtMi4yMTc1MV1bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC41MzczNCwg
MS4zNTUzOCwgMF1bMC40NjMyNTMsIDEuOTU3NDMsIC0wLjkwMzI1MV1bMS4wMDAwMCwgLTAu
MDAwMDAsIC0wLjAwMDAwXVswLjcyMzkxLCAxLjM5NjUxLCAwXVswLjQ0Njg1MSwgMS45NjMz
MSwgLTEuNjc1MjZdWzEuMDAwMDAsIC0wLjAwMDAwLCAtMC4wMDAwMF1bMC41ODg5NywgMS4z
OTY1MSwgMF1bMC40NDY4NjksIDEuNzk5NDEsIC0xLjY3NjUxXVsxLjAwMDAwLCAtMC4wMDAw
MCwgLTAuMDAwMDBdWzAuNTg4OTcsIDEuMzc5MDgsIDBdWzAuNDQ2ODY5LCAxLjc5OTQxLCAt
MS42NzY1MV1bMS4wMDAwMCwgLTAuMDAwMDAsIC0wLjAwMDAwXVswLjU4ODk3LCAxLjM3OTA4
LCAwXVswLjQ2MzI3MSwgMS43OTM1MywgLTAuOTA0NV1bMS4wMDAwMCwgLTAuMDAwMDAsIC0w
LjAwMDAwXVswLjcyMzkxLCAxLjM3OTA4LCAwXVswLjQ2MzI1MywgMS45NTc0MywgLTAuOTAz
MjUxXVsxLjAwMDAwLCAtMC4wMDAwMCwgLTAuMDAwMDBdWzAuNzIzOTEsIDEuMzk2NTEsIDBd
WzAuNjMwODQ0LCAxLjg3NDQsIC0wLjkwNzQ0NF1bLTAuNDM0MzUsIDAuMDAwMDAsIDAuOTAw
NzVdWzAuNzIzOTEsIDEuMzg4NzMsIDBdWzAuNDYzMjcxLCAxLjc5MzUzLCAtMC45MDQ1XVst
MC40MzQzNSwgMC4wMDAwMCwgMC45MDA3NV1bMC43MjM5MSwgMS4zNzkwOCwgMF1bMC40NDY4
NjksIDEuNzk5NDEsIC0xLjY3NjUxXVstMC40MzQzNSwgMC4wMDAwMCwgMC45MDA3NV1bMC41
ODg5NywgMS4zNzkwOCwgMF1bMC40NDY4NjksIDEuNzk5NDEsIC0xLjY3NjUxXVstMC40MzQz
NSwgMC4wMDAwMCwgMC45MDA3NV1bMC41ODg5NywgMS4zNzkwOCwgMF1bMC42MTU5NjgsIDEu
ODc5NzMsIC0xLjYwNzYxXVstMC40MzQzNSwgLTAuMDAwMDAsIDAuOTAwNzVdWzAuNTk3NzQs
IDEuMzg4NzMsIDBdWzAuNjMwODQ0LCAxLjg3NDQsIC0wLjkwNzQ0NF1bLTAuNDM0MzUsIDAu
MDAwMDAsIDAuOTAwNzVdWzAuNzIzOTEsIDEuMzg4NzMsIDBdWzAuNjMwODQ0LCAxLjg3NDQs
IC0wLjkwNzQ0NF1bMC4wMDAwMCwgLTEuMDAwMDAsIC0wLjAwMDAwXVswLjcyMzkxLCAxLjM4
ODczLCAwXVswLjQ2MzI1MywgMS45NTc0MywgLTAuOTAzMjUxXVswLjAwMDAwLCAtMS4wMDAw
MCwgLTAuMDAwMDBdWzAuNzIzOTEsIDEuMzk2NTEsIDBdWzAuNDYzMjcxLCAxLjc5MzUzLCAt
MC45MDQ1XVswLjAwMDAwLCAtMS4wMDAwMCwgLTAuMDAwMDBdWzAuNzIzOTEsIDEuMzc5MDgs
IDBdWzAuNjE1OTY4LCAxLjg3OTczLCAtMS42MDc2MV1bLTAuNDQ0MDgsIDAuMDAwMDAsIC0w
Ljg5NTk5XVswLjU5Nzc0LCAxLjM4ODczLCAwXVswLjQ0Njg1MSwgMS45NjMzMSwgLTEuNjc1
MjZdWy0wLjQ0NDA4LCAwLjAwMDAwLCAtMC44OTU5OV1bMC41ODg5NywgMS4zOTY1MSwgMF1b
MC40NjMyNTMsIDEuOTU3NDMsIC0wLjkwMzI1MV1bLTAuNDQ0MDgsIDAuMDAwMDAsIC0wLjg5
NTk5XVswLjcyMzkxLCAxLjM5NjUxLCAwXVswLjQ2MzI1MywgMS45NTc0MywgLTAuOTAzMjUx
XVstMC40NDQwOCwgMC4wMDAwMCwgLTAuODk1OTldWzAuNzIzOTEsIDEuMzk2NTEsIDBdWzAu
NjMwODQ0LCAxLjg3NDQsIC0wLjkwNzQ0NF1bLTAuNDQ0MDgsIDAuMDAwMDAsIC0wLjg5NTk5
XVswLjcyMzkxLCAxLjM4ODczLCAwXVswLjYxNTk2OCwgMS44Nzk3MywgLTEuNjA3NjFdWy0w
LjQ0NDA4LCAwLjAwMDAwLCAtMC44OTU5OV1bMC41OTc3NCwgMS4zODg3MywgMF1bMC42MTU5
NjgsIDEuODc5NzMsIC0xLjYwNzYxXVstMC4zOTQwMCwgMC45MTkxMSwgMC4wMDAwMF1bMC41
OTc3NCwgMS4zODg3MywgMF1bMC40NDY4NjksIDEuNzk5NDEsIC0xLjY3NjUxXVstMC4zOTQw
MCwgMC45MTkxMSwgMC4wMDAwMF1bMC41ODg5NywgMS4zNzkwOCwgMF1bMC40NDY4NTEsIDEu
OTYzMzEsIC0xLjY3NTI2XVstMC4zOTQwMCwgMC45MTkxMSwgMC4wMDAwMF1bMC41ODg5Nywg
MS4zOTY1MSwgMF1bMC4yMDQwNTksIDAuNTE0NDE2LCAtMi43MTM3OV1bLTAuMzUwNjAsIDAu
MDAzMjQsIDAuOTM2NTJdWzAuMDY0MTAsIDEuNjUxODgsIDBdWzAuMDE2MTk0OSwgMC40MTMw
MzYsIC0xLjA4MjddWy0wLjExNjM1LCAwLjAwNDcyLCAwLjk5MzIwXVswLjAwMDMyLCAxLjY3
MTE0LCAwXVstMC4wMjIwMTY2LCAwLjQzOTk2MywgLTIuODgxMDZdWzAuMTE2OTUsIDAuMDAy
OTcsIDAuOTkzMTNdWzAuMDY0MDUsIDEuNjcxMTQsIDBdWzAuMjA0MDU5LCAwLjUxNDQxNiwg
LTIuNzEzNzldWy0wLjM1MDYwLCAwLjAwMzI0LCAwLjkzNjUyXVswLjA2NDEwLCAxLjY1MTg4
LCAwXVswLjIzNzc2NywgMC41MDMxMjUsIC0xLjEyNzE5XVstMC4zNzQwOCwgLTAuMDAwNDcs
IDAuOTI3NDBdWzAuMDA1ODMsIDEuNjUxODgsIDBdWzAuMDE2MTk0OSwgMC40MTMwMzYsIC0x
LjA4MjddWy0wLjExNjM1LCAwLjAwNDcyLCAwLjk5MzIwXVswLjAwMDMyLCAxLjY3MTE0LCAw
XVswLjIwNDA1OSwgMC41MTQ0MTYsIC0yLjcxMzc5XVstMC40NjY2NywgMC4wMDA0NCwgLTAu
ODg0NDNdWzAuMDcwNjcsIDEuNzQ0MjIsIDBdWy0wLjAxNjU4MzQsIDAuNjMxMTQzLCAtMi42
MjI4N11bLTAuNTAxODIsIDAuMDA3MTcsIC0wLjg2NDk0XVswLjA3MTM5LCAxLjcyMjkzLCAw
XVswLjIzNzc2NywgMC41MDMxMjUsIC0xLjEyNzE5XVstMC41MDE4MiwgMC4wMDcxNywgLTAu
ODY0OTRdWzAuMjQ1MjIsIDEuNzQ0MjIsIDBdWy0wLjAxNjU4MzQsIDAuNjMxMTQzLCAtMi42
MjI4N11bLTAuNTAxODIsIDAuMDA3MTcsIC0wLjg2NDk0XVswLjA3MTM5LCAxLjcyMjkzLCAw
XVswLjAxMzQ5ODEsIDAuNjQzNjQyLCAtMS4yMDY3XVstMC41MzYxNCwgMC4wMTM4OCwgLTAu
ODQ0MDFdWzAuMjM2NzcsIDEuNzIyOTMsIDBdWzAuMjM3NzY3LCAwLjUwMzEyNSwgLTEuMTI3
MTldWy0wLjUwMTgyLCAwLjAwNzE3LCAtMC44NjQ5NF1bMC4yNDUyMiwgMS43NDQyMiwgMF1b
LTAuMDE2NTgzNCwgMC42MzExNDMsIC0yLjYyMjg3XVswLjQyMjA5LCAwLjAxNDkwLCAtMC45
MDY0M11bMC4wNzEzOSwgMS43MjI5MywgMF1bLTAuMjY3NTE4LCAwLjUxNDI4OCwgLTIuNzAz
NzddWzAuNDc2OTksIDAuMDAzMjEsIC0wLjg3ODkwXVswLjA3MDY3LCAxLjY5OTA5LCAwXVsw
LjAxMzQ5ODEsIDAuNjQzNjQyLCAtMS4yMDY3XVswLjQ3Njk5LCAwLjAwMzIxLCAtMC44Nzg5
MF1bMC4yMzY3NywgMS43MjI5MywgMF1bLTAuMjY3NTE4LCAwLjUxNDI4OCwgLTIuNzAzNzdd
WzAuNDc2OTksIDAuMDAzMjEsIC0wLjg3ODkwXVswLjA3MDY3LCAxLjY5OTA5LCAwXVstMC4y
MDcxMTYsIDAuNTAzMDA1LCAtMS4xMTc3NF1bMC41MzAwMywgLTAuMDA4NDksIC0wLjg0Nzk0
XVswLjI0NTIyLCAxLjcwMTY0LCAwXVswLjAxMzQ5ODEsIDAuNjQzNjQyLCAtMS4yMDY3XVsw
LjQ3Njk5LCAwLjAwMzIxLCAtMC44Nzg5MF1bMC4yMzY3NywgMS43MjI5MywgMF1bMC4xOTY5
OTUsIDEuNDY4NDEsIC0zLjAzNDEzXVstMC42NTAyMiwgMC43MTc0NSwgMC4yNDk5NF1bMC4y
NDU2MywgMS42NTE4OCwgMF1bLTAuMDIyMDE2NiwgMC40Mzk5NjMsIC0yLjg4MTA2XVstMC42
NTAyMiwgMC43MTc0NSwgMC4yNDk5NF1bMC4wNjQwNSwgMS42NzExNCwgMF1bLTAuMDI5ODEz
MiwgMS40NjkxNiwgLTMuMjM0OTNdWy0wLjY1NzQ1LCAwLjcxMDY1LCAwLjI1MDQ3XVswLjI1
MjExLCAxLjY3MTE0LCAwXVswLjE5Njk5NSwgMS40Njg0MSwgLTMuMDM0MTNdWy0wLjY1MDIy
LCAwLjcxNzQ1LCAwLjI0OTk0XVswLjI0NTYzLCAxLjY1MTg4LCAwXVswLjIwNDA1OSwgMC41
MTQ0MTYsIC0yLjcxMzc5XVstMC42NDI5MywgMC43MjQxOSwgMC4yNDkzOF1bMC4wNjQxMCwg
MS42NTE4OCwgMF1bLTAuMDIyMDE2NiwgMC40Mzk5NjMsIC0yLjg4MTA2XVstMC42NTAyMiwg
MC43MTc0NSwgMC4yNDk5NF1bMC4wNjQwNSwgMS42NzExNCwgMF1bMC4xOTY5OTUsIDEuNDY4
NDEsIC0zLjAzNDEzXVstMC41NDM5NywgLTAuNzkzMzgsIC0wLjI3MzIxXVswLjAwNDgyLCAx
Ljc0NDIyLCAwXVstMC4wMjE4NzM2LCAxLjQyMjIxLCAtMi44NjE3OV1bLTAuNTA0MjIsIC0w
LjgyMDg1LCAtMC4yNjgyOV1bMC4wMTE1OCwgMS43MjI5MywgMF1bMC4yMDQwNTksIDAuNTE0
NDE2LCAtMi43MTM3OV1bLTAuNTA0MjIsIC0wLjgyMDg1LCAtMC4yNjgyOV1bMC4wNzA2Nywg
MS43NDQyMiwgMF1bLTAuMDIxODczNiwgMS40MjIyMSwgLTIuODYxNzldWy0wLjUwNDIyLCAt
MC44MjA4NSwgLTAuMjY4MjldWzAuMDExNTgsIDEuNzIyOTMsIDBdWy0wLjAxNjU4MzQsIDAu
NjMxMTQzLCAtMi42MjI4N11bLTAuNDYzMjcsIC0wLjg0NjM4LCAtMC4yNjI3NF1bMC4wNzEz
OSwgMS43MjI5MywgMF1bMC4yMDQwNTksIDAuNTE0NDE2LCAtMi43MTM3OV1bLTAuNTA0MjIs
IC0wLjgyMDg1LCAtMC4yNjgyOV1bMC4wNzA2NywgMS43NDQyMiwgMF1bLTAuMDIxODczNiwg
MS40MjIyMSwgLTIuODYxNzldWzAuNTUxNjMsIC0wLjc5NjU5LCAtMC4yNDcyOF1bMC4wMTE1
OCwgMS43MjI5MywgMF1bLTAuMjQ3ODg4LCAxLjQ2ODI5LCAtMy4wMjQ2OF1bMC40OTM5Miwg
LTAuODI0MzksIC0wLjI3NjQ0XVswLjAwNDgyLCAxLjcwMTY0LCAwXVstMC4wMTY1ODM0LCAw
LjYzMTE0MywgLTIuNjIyODddWzAuNDkzOTIsIC0wLjgyNDM5LCAtMC4yNzY0NF1bMC4wNzEz
OSwgMS43MjI5MywgMF1bLTAuMjQ3ODg4LCAxLjQ2ODI5LCAtMy4wMjQ2OF1bMC40OTM5Miwg
LTAuODI0MzksIC0wLjI3NjQ0XVswLjAwNDgyLCAxLjcwMTY0LCAwXVstMC4yNjc1MTgsIDAu
NTE0Mjg4LCAtMi43MDM3N11bMC40MzM3OCwgLTAuODQ4MTEsIC0wLjMwNDIzXVswLjA3MDY3
LCAxLjY5OTA5LCAwXVstMC4wMTY1ODM0LCAwLjYzMTE0MywgLTIuNjIyODddWzAuNDkzOTIs
IC0wLjgyNDM5LCAtMC4yNzY0NF1bMC4wNzEzOSwgMS43MjI5MywgMF1bLTAuMjQ3ODg4LCAx
LjQ2ODI5LCAtMy4wMjQ2OF1bMC42NjEyMywgMC43MTQ4MiwgMC4yMjc2MV1bMC4yNDU2Mywg
MS42OTExNSwgMF1bLTAuMDI5ODEzMiwgMS40NjkxNiwgLTMuMjM0OTNdWzAuNjMxMTMsIDAu
NzM1MzEsIDAuMjQ2OThdWzAuMjUyMTEsIDEuNjcxMTQsIDBdWy0wLjI2NzUxOCwgMC41MTQy
ODgsIC0yLjcwMzc3XVswLjYzMTEzLCAwLjczNTMxLCAwLjI0Njk4XVswLjA2NDEwLCAxLjY5
MTIxLCAwXVstMC4yNjc1MTgsIDAuNTE0Mjg4LCAtMi43MDM3N11bMC4yODczMiwgLTAuMDA1
MzEsIDAuOTU3ODJdWzAuMDY0MTAsIDEuNjkxMjEsIDBdWy0wLjAyMjAxNjYsIDAuNDM5OTYz
LCAtMi44ODEwNl1bMC4xMTY5NSwgMC4wMDI5NywgMC45OTMxM11bMC4wNjQwNSwgMS42NzEx
NCwgMF1bLTAuMjA3MTE2LCAwLjUwMzAwNSwgLTEuMTE3NzRdWzAuMzMwNDcsIDAuMDAwNzUs
IDAuOTQzODJdWzAuMDA1ODMsIDEuNjkxMTUsIDBdWy0wLjAyOTgxMzIsIDEuNDY5MTYsIC0z
LjIzNDkzXVswLjYzMTEzLCAwLjczNTMxLCAwLjI0Njk4XVswLjI1MjExLCAxLjY3MTE0LCAw
XVstMC4wMjIwMTY2LCAwLjQzOTk2MywgLTIuODgxMDZdWzAuNTk5OTYsIDAuNzU0NTQsIDAu
MjY1OTRdWzAuMDY0MDUsIDEuNjcxMTQsIDBdWy0wLjI2NzUxOCwgMC41MTQyODgsIC0yLjcw
Mzc3XVswLjYzMTEzLCAwLjczNTMxLCAwLjI0Njk4XVswLjA2NDEwLCAxLjY5MTIxLCAwXVst
MC4wMjIwMTY2LCAwLjQzOTk2MywgLTIuODgxMDZdWzAuMTE2OTUsIDAuMDAyOTcsIDAuOTkz
MTNdWzAuMDY0MDUsIDEuNjcxMTQsIDBdWzAuMDE2MTk0OSwgMC40MTMwMzYsIC0xLjA4Mjdd
Wy0wLjExNjM1LCAwLjAwNDcyLCAwLjk5MzIwXVswLjAwMDMyLCAxLjY3MTE0LCAwXVstMC4y
MDcxMTYsIDAuNTAzMDA1LCAtMS4xMTc3NF1bMC4zMzA0NywgMC4wMDA3NSwgMC45NDM4Ml1b
MC4wMDU4MywgMS42OTExNSwgMF1bLTAuMDg5MDMwNiwgMS45NzQ5NywgLTUuOTYzNjVdWy0w
LjcwNzExLCAtMC4wMDAwMCwgLTAuNzA3MTFdWzAuMjE5OTUsIDEuMjc3MzksIDBdWy0wLjA1
NzYxODMsIDEuOTYzNzEsIC00LjQ4NTE1XVstMC43MDcxMSwgLTAuMDAwMDAsIC0wLjcwNzEx
XVswLjQwNTI5LCAxLjI3NzM5LCAwXVswLjAzNTY0NDEsIDEuODUwMzIsIC01Ljk2NzI1XVst
MC43MDcxMSwgLTAuMDAwMDAsIC0wLjcwNzExXVswLjIxOTk1LCAxLjI5ODUyLCAwXVstMC4w
NTc2MTgzLCAxLjk2MzcxLCAtNC40ODUxNV1bLTAuNzA3MTEsIC0wLjAwMDAwLCAtMC43MDcx
MV1bMC40MDUyOSwgMS4yNzczOSwgMF1bMC4wNjcwNTYzLCAxLjgzOTA2LCAtNC40ODg3NF1b
LTAuNzA3MTEsIC0wLjAwMDAwLCAtMC43MDcxMV1bMC40MDUyOSwgMS4yOTg1MiwgMF1bMC4w
MzU2NDQxLCAxLjg1MDMyLCAtNS45NjcyNV1bLTAuNzA3MTEsIC0wLjAwMDAwLCAtMC43MDcx
MV1bMC4yMTk5NSwgMS4yOTg1MiwgMF1bLTAuMDg5MDMwNiwgMS45NzQ5NywgLTUuOTYzNjVd
WzAuNzA3MTEsIC0wLjAwMDAwLCAtMC43MDcxMV1bMC4yMTk5NSwgMS4yNzczOSwgMF1bLTAu
MjEzNjc4LCAxLjg1MDI1LCAtNS45NjE5Nl1bMC43MDcxMSwgLTAuMDAwMDAsIC0wLjcwNzEx
XVswLjIxOTk1LCAxLjI1NjI2LCAwXVstMC4wNTc2MTgzLCAxLjk2MzcxLCAtNC40ODUxNV1b
MC43MDcxMSwgLTAuMDAwMDAsIC0wLjcwNzExXVswLjQwNTI5LCAxLjI3NzM5LCAwXVstMC4y
MTM2NzgsIDEuODUwMjUsIC01Ljk2MTk2XVswLjcwNzExLCAtMC4wMDAwMCwgLTAuNzA3MTFd
WzAuMjE5OTUsIDEuMjU2MjYsIDBdWy0wLjE4MjI2NiwgMS44Mzg5OSwgLTQuNDgzNDVdWzAu
NzA3MTEsIC0wLjAwMDAwLCAtMC43MDcxMV1bMC40MDUyOSwgMS4yNTYyNiwgMF1bLTAuMDU3
NjE4MywgMS45NjM3MSwgLTQuNDg1MTVdWzAuNzA3MTEsIC0wLjAwMDAwLCAtMC43MDcxMV1b
MC40MDUyOSwgMS4yNzczOSwgMF1bLTAuMDg5MDAzMywgMS43MjU2LCAtNS45NjU1NV1bMC43
MDcxMSwgMC4wMDAwMCwgMC43MDcxMV1bMC4yMTk5NSwgMS4yMzUxMiwgMF1bLTAuMDU3NTkx
LCAxLjcxNDM0LCAtNC40ODcwNV1bMC43MDcxMSwgMC4wMDAwMCwgMC43MDcxMV1bMC40MDUy
OSwgMS4yMzUxMiwgMF1bLTAuMjEzNjc4LCAxLjg1MDI1LCAtNS45NjE5Nl1bMC43MDcxMSwg
MC4wMDAwMCwgMC43MDcxMV1bMC4yMTk5NSwgMS4yNTYyNiwgMF1bLTAuMDU3NTkxLCAxLjcx
NDM0LCAtNC40ODcwNV1bMC43MDcxMSwgMC4wMDAwMCwgMC43MDcxMV1bMC40MDUyOSwgMS4y
MzUxMiwgMF1bLTAuMTgyMjY2LCAxLjgzODk5LCAtNC40ODM0NV1bMC43MDcxMSwgMC4wMDAw
MCwgMC43MDcxMV1bMC40MDUyOSwgMS4yNTYyNiwgMF1bLTAuMjEzNjc4LCAxLjg1MDI1LCAt
NS45NjE5Nl1bMC43MDcxMSwgMC4wMDAwMCwgMC43MDcxMV1bMC4yMTk5NSwgMS4yNTYyNiwg
MF1bLTAuMDg5MDAzMywgMS43MjU2LCAtNS45NjU1NV1bLTAuNzA3MTEsIDAuMDAwMDAsIDAu
NzA3MTFdWzAuMjE5OTUsIDEuMzE5NjUsIDBdWzAuMDM1NjQ0MSwgMS44NTAzMiwgLTUuOTY3
MjVdWy0wLjcwNzExLCAwLjAwMDAwLCAwLjcwNzExXVswLjIxOTk1LCAxLjI5ODUyLCAwXVst
MC4wNTc1OTEsIDEuNzE0MzQsIC00LjQ4NzA1XVstMC43MDcxMSwgMC4wMDAwMCwgMC43MDcx
MV1bMC40MDUyOSwgMS4zMTk2NSwgMF1bMC4wMzU2NDQxLCAxLjg1MDMyLCAtNS45NjcyNV1b
LTAuNzA3MTEsIDAuMDAwMDAsIDAuNzA3MTFdWzAuMjE5OTUsIDEuMjk4NTIsIDBdWzAuMDY3
MDU2MywgMS44MzkwNiwgLTQuNDg4NzRdWy0wLjcwNzExLCAwLjAwMDAwLCAwLjcwNzExXVsw
LjQwNTI5LCAxLjI5ODUyLCAwXVstMC4wNTc1OTEsIDEuNzE0MzQsIC00LjQ4NzA1XVstMC43
MDcxMSwgMC4wMDAwMCwgMC43MDcxMV1bMC40MDUyOSwgMS4zMTk2NSwgMF1bMC4wMzU2NDQx
LCAxLjg1MDMyLCAtNS45NjcyNV1bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC41MjA0
MCwgMS4wNjQ4NSwgMF1bLTAuMDg5MDAzMywgMS43MjU2LCAtNS45NjU1NV1bMC4wMDAwMCwg
MS4wMDAwMCwgMC4wMDAwMF1bMC41Mzc4NywgMS4wNDczOCwgMF1bLTAuMjEzNjc4LCAxLjg1
MDI1LCAtNS45NjE5Nl1bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC41NTUzMywgMS4w
NjQ4NSwgMF1bLTAuMDg5MDMwNiwgMS45NzQ5NywgLTUuOTYzNjVdWzAuMDAwMDAsIDEuMDAw
MDAsIDAuMDAwMDBdWzAuNTM3ODcsIDEuMDgyMzEsIDBdWzAuMDM1NjQ0MSwgMS44NTAzMiwg
LTUuOTY3MjVdWzAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNTIwNDAsIDEuMDY0ODUs
IDBdWy0wLjIxMzY3OCwgMS44NTAyNSwgLTUuOTYxOTZdWzAuMDAwMDAsIDEuMDAwMDAsIDAu
MDAwMDBdWzAuNTU1MzMsIDEuMDY0ODUsIDBdWzAuMTA1MDIyLCAxLjAwNCwgLTEuNzkwNzVd
Wy0wLjUzMzAyLCAtMC44NDUyMiwgMC4wMzg1Ml1bMC41NTE5OCwgMS43MTQ3MywgMF1bLTAu
MDAyMjE1NTIsIDEuNDAwMjksIC0xLjgwNDNdWy0wLjQ4MjE4LCAtMC44NTkyNSwgLTAuMTcw
ODZdWzAuNjA4NTEsIDEuNzA1MDQsIDBdWy0wLjAwMDI2MzE1NiwgMC45ODA3MDUsIC0xLjcx
Nzc1XVswLjA3MzkwLCAtMC45NzMwOCwgMC4yMTgyOF1bMC41NTI5NCwgMS43MDg2MCwgMF1b
MC4xMDUwMjIsIDEuMDA0LCAtMS43OTA3NV1bLTAuNTMzMDIsIC0wLjg0NTIyLCAwLjAzODUy
XVswLjU1MTk4LCAxLjcxNDczLCAwXVswLjEwMzQyNywgMS40MDEyMiwgLTEuODYwNzddWy0w
LjQ0NjA1LCAtMC44ODAyMSwgLTAuMTYyMTJdWzAuNjEwMjEsIDEuNzIwNTcsIDBdWy0wLjAw
MjIxNTUyLCAxLjQwMDI5LCAtMS44MDQzXVstMC40ODIxOCwgLTAuODU5MjUsIC0wLjE3MDg2
XVswLjYwODUxLCAxLjcwNTA0LCAwXVswLjEwNTAyMiwgMS4wMDQsIC0xLjc5MDc1XVstMC42
NDg3MiwgMC43NTQxOSwgLTAuMTAxODNdWzAuNTUxOTgsIDEuNzE0NzMsIDBdWy0wLjAwMzcw
ODM1LCAxLjAxMDI0LCAtMS44Nzk1NV1bLTAuMTUyODIsIDAuOTgzNjEsIC0wLjA5NTczXVsw
LjU1MTk0LCAxLjcyMTI2LCAwXVswLjEwMzQyNywgMS40MDEyMiwgLTEuODYwNzddWy0wLjY0
Mzc5LCAwLjc1MjA4LCAwLjE0MTA5XVswLjYxMDIxLCAxLjcyMDU3LCAwXVstMC4wMDM3MDgz
NSwgMS4wMTAyNCwgLTEuODc5NTVdWy0wLjE1MjgyLCAwLjk4MzYxLCAtMC4wOTU3M11bMC41
NTE5NCwgMS43MjEyNiwgMF1bLTAuMDA1Mjg4NTMsIDEuMzg5OTYsIC0xLjk0OTA5XVstMC42
NDkwOSwgMC43NDcxOSwgMC4xNDI3Nl1bMC42MDgwNiwgMS43MjkyNSwgMF1bMC4xMDM0Mjcs
IDEuNDAxMjIsIC0xLjg2MDc3XVstMC42NDM3OSwgMC43NTIwOCwgMC4xNDEwOV1bMC42MTAy
MSwgMS43MjA1NywgMF1bLTAuMDAzNzA4MzUsIDEuMDEwMjQsIC0xLjg3OTU1XVstMC4xNTI4
MiwgMC45ODM2MSwgLTAuMDk1NzNdWzAuNTUxOTQsIDEuNzIxMjYsIDBdWy0wLjEyMTM4Miwg
MS4wMDM5NCwgLTEuNzg1OTRdWzAuNjI0MjMsIDAuNzgwOTIsIC0wLjAyMjM3XVswLjU1MTk4
LCAxLjcxNDczLCAwXVstMC4wMDUyODg1MywgMS4zODk5NiwgLTEuOTQ5MDldWzAuNjIyNTIs
IDAuNzcxMDEsIDAuMTM0MjJdWzAuNjA4MDYsIDEuNzI5MjUsIDBdWy0wLjEyMTM4MiwgMS4w
MDM5NCwgLTEuNzg1OTRdWzAuNjI0MjMsIDAuNzgwOTIsIC0wLjAyMjM3XVswLjU1MTk4LCAx
LjcxNDczLCAwXVstMC4xMTAxNjEsIDEuNDAxMTYsIC0xLjg1NjI0XVswLjY0OTYxLCAwLjc1
MTE1LCAwLjExNzM2XVswLjYxMDIxLCAxLjcyMDU3LCAwXVstMC4wMDUyODg1MywgMS4zODk5
NiwgLTEuOTQ5MDldWzAuNjIyNTIsIDAuNzcxMDEsIDAuMTM0MjJdWzAuNjA4MDYsIDEuNzI5
MjUsIDBdWzAuMDczOTEyLCAwLjczMjc3NCwgLTEuOTQ2NDhdWy0wLjI5MjY3LCAtMC43NTQy
MywgMC41ODc3N11bMC41MDU3MSwgMS43MTQ0MywgMF1bLTAuMDAwMjYzMTU2LCAwLjk4MDcw
NSwgLTEuNzE3NzVdWzAuMDczOTAsIC0wLjk3MzA4LCAwLjIxODI4XVswLjU1Mjk0LCAxLjcw
ODYwLCAwXVstMC4wODM5NTA3LCAwLjczMjczMiwgLTEuOTQzMTJdWzAuMjY2NzUsIC0wLjc1
NjA5LCAwLjU5NzY0XVswLjUwNTcxLCAxLjcxNDQzLCAwXVswLjA3MzkxMiwgMC43MzI3NzQs
IC0xLjk0NjQ4XVstMC4yOTI2NywgLTAuNzU0MjMsIDAuNTg3NzddWzAuNTA1NzEsIDEuNzE0
NDMsIDBdWzAuMTA1MDIyLCAxLjAwNCwgLTEuNzkwNzVdWy0wLjUzMzAyLCAtMC44NDUyMiwg
MC4wMzg1Ml1bMC41NTE5OCwgMS43MTQ3MywgMF1bLTAuMDAwMjYzMTU2LCAwLjk4MDcwNSwg
LTEuNzE3NzVdWzAuMDczOTAsIC0wLjk3MzA4LCAwLjIxODI4XVswLjU1Mjk0LCAxLjcwODYw
LCAwXVswLjA3MzkxMiwgMC43MzI3NzQsIC0xLjk0NjQ4XVstMC4zMzA2NCwgMC44OTU2OCwg
LTAuMjk3MzldWzAuNTA1NzEsIDEuNzE0NDMsIDBdWy0wLjAwMzcwODM1LCAxLjAxMDI0LCAt
MS44Nzk1NV1bLTAuMTUyODIsIDAuOTgzNjEsIC0wLjA5NTczXVswLjU1MTk0LCAxLjcyMTI2
LCAwXVswLjEwNTAyMiwgMS4wMDQsIC0xLjc5MDc1XVstMC42NDg3MiwgMC43NTQxOSwgLTAu
MTAxODNdWzAuNTUxOTgsIDEuNzE0NzMsIDBdWzAuMDczOTEyLCAwLjczMjc3NCwgLTEuOTQ2
NDhdWy0wLjMzMDY0LCAwLjg5NTY4LCAtMC4yOTczOV1bMC41MDU3MSwgMS43MTQ0MywgMF1b
LTAuMDgzOTUwNywgMC43MzI3MzIsIC0xLjk0MzEyXVswLjMwNjQwLCAwLjkwNTc1LCAtMC4y
OTI3OV1bMC41MDU3MSwgMS43MTQ0MywgMF1bLTAuMDAzNzA4MzUsIDEuMDEwMjQsIC0xLjg3
OTU1XVstMC4xNTI4MiwgMC45ODM2MSwgLTAuMDk1NzNdWzAuNTUxOTQsIDEuNzIxMjYsIDBd
Wy0wLjA4Mzk1MDcsIDAuNzMyNzMyLCAtMS45NDMxMl1bMC4zMDY0MCwgMC45MDU3NSwgLTAu
MjkyNzldWzAuNTA1NzEsIDEuNzE0NDMsIDBdWy0wLjEyMTM4MiwgMS4wMDM5NCwgLTEuNzg1
OTRdWzAuNjI0MjMsIDAuNzgwOTIsIC0wLjAyMjM3XVswLjU1MTk4LCAxLjcxNDczLCAwXVst
MC4wMDM3MDgzNSwgMS4wMTAyNCwgLTEuODc5NTVdWy0wLjE1MjgyLCAwLjk4MzYxLCAtMC4w
OTU3M11bMC41NTE5NCwgMS43MjEyNiwgMF1bLTAuMTIxMzgyLCAxLjAwMzk0LCAtMS43ODU5
NF1bMC41MjU4NCwgLTAuODM0OTYsIDAuMTYyMjddWzAuNTUxOTgsIDEuNzE0NzMsIDBdWy0w
LjAwMDI2MzE1NiwgMC45ODA3MDUsIC0xLjcxNzc1XVswLjA3MzkwLCAtMC45NzMwOCwgMC4y
MTgyOF1bMC41NTI5NCwgMS43MDg2MCwgMF1bLTAuMTEwMTYxLCAxLjQwMTE2LCAtMS44NTYy
NF1bMC40NjA3OSwgLTAuODY4ODcsIC0wLjE4MDk0XVswLjYxMDIxLCAxLjcyMDU3LCAwXVst
MC4wODM5NTA3LCAwLjczMjczMiwgLTEuOTQzMTJdWzAuMjY2NzUsIC0wLjc1NjA5LCAwLjU5
NzY0XVswLjUwNTcxLCAxLjcxNDQzLCAwXVstMC4wMDAyNjMxNTYsIDAuOTgwNzA1LCAtMS43
MTc3NV1bMC4wNzM5MCwgLTAuOTczMDgsIDAuMjE4MjhdWzAuNTUyOTQsIDEuNzA4NjAsIDBd
Wy0wLjEyMTM4MiwgMS4wMDM5NCwgLTEuNzg1OTRdWzAuNTI1ODQsIC0wLjgzNDk2LCAwLjE2
MjI3XVswLjU1MTk4LCAxLjcxNDczLCAwXVstMC4wMDAyNjMxNTYsIDAuOTgwNzA1LCAtMS43
MTc3NV1bMC4wNzM5MCwgLTAuOTczMDgsIDAuMjE4MjhdWzAuNTUyOTQsIDEuNzA4NjAsIDBd
Wy0wLjAwMjIxNTUyLCAxLjQwMDI5LCAtMS44MDQzXVswLjQ0Mzg5LCAtMC44NzYxOSwgLTAu
MTg3NzZdWzAuNjA4NTEsIDEuNzA1MDQsIDBdWy0wLjExMDE2MSwgMS40MDExNiwgLTEuODU2
MjRdWzAuNDYwNzksIC0wLjg2ODg3LCAtMC4xODA5NF1bMC42MTAyMSwgMS43MjA1NywgMF1b
MC4zNjA3ODksIDIuNDk0NjEsIC0xLjYxNjA2XVstMC44NDg4NCwgLTAuMDAyMDMsIC0wLjUy
ODY1XVswLjU4NDk1LCAxLjQ3MzQzLCAwXVswLjI2MTY0MiwgMi43NzA2OSwgMC4wOTY1Njg2
XVstMC45MDU1OSwgMC4wMDAwMCwgLTAuNDI0MTZdWzAuODAzMTEsIDEuNDg0NzksIDBdWzAu
NDA0NDA0LCAyLjQ3ODk3LCAwLjQzNjgxXVstMC44NjY2OSwgMC4wMDAwMCwgLTAuNDk4ODVd
WzAuODU1NjcsIDEuNDc0NDcsIDBdWzAuMzIwMTU0LCAxLjk0MDMzLCAtNS43NTE2NF1bLTEu
MDAwMDAsIDAuMDAwMDAsIC0wLjAwMDAwXVswLjAwNTMwLCAxLjQwMTEwLCAwXVswLjMyNjQw
OCwgMi40ODgxNCwgLTUuNDUwMjJdWy0wLjk0NjkwLCAwLjA3NTQ3LCAtMC4zMTI1NV1bMC4w
NDY2MSwgMS40Njg3MSwgMF1bMC4zMjY0NjksIDEuOTM4MDYsIC01LjQ1NDQxXVstMC45MzMw
NywgMC4zNTk3MCwgLTAuMDAwMDBdWzAuMDQ2NjEsIDEuNDAxMTAsIDBdWzAuNDMyODgsIDIu
NDAyMTUsIC0yLjU2MDkyXVstMC44ODc2NiwgLTAuMDcyOTgsIC0wLjQ1NDY3XVswLjQ1NTQz
LCAxLjQ1NTI0LCAwXVswLjQ1Mjg5NiwgMi4zOTQ5NywgLTEuNjE4NzddWy0wLjk2NjA2LCAt
MC4wMDY2MiwgLTAuMjU4MjRdWzAuNTg0OTUsIDEuNDU1MjQsIDBdWzAuNTAzMDQ2LCAxLjg5
MDkxLCAwLjczNTQ1NF1bLTAuOTk5ODQsIC0wLjAwMzU2LCAtMC4wMTcyOF1bMC45MDE1Nywg
MS40MDI4NywgMF1bMC40NTI4OTYsIDIuMzk0OTcsIC0xLjYxODc3XVstMC45NjYwNiwgLTAu
MDA2NjIsIC0wLjI1ODI0XVswLjU4NDk1LCAxLjQ1NTI0LCAwXVswLjQ3NTE3NSwgMi4zNzgy
NiwgMC40OTA0NTRdWy0wLjg5MTE0LCAtMC4wMDY1MywgLTAuNDUzNjhdWzAuODY2OTQsIDEu
NDU2NDksIDBdWzAuNTAzMDQ2LCAxLjg5MDkxLCAwLjczNTQ1NF1bLTAuOTk5ODQsIC0wLjAw
MzU2LCAtMC4wMTcyOF1bMC45MDE1NywgMS40MDI4NywgMF1bMC4zMjY0MDgsIDIuNDg4MTQs
IC01LjQ1MDIyXVstMC45NDY5MCwgMC4wNzU0NywgLTAuMzEyNTVdWzAuMDQ2NjEsIDEuNDY4
NzEsIDBdWzAuMTM3NjE2LCAyLjgxNTE1LCAtNS43NDExXVstMC44NzE4MywgMC4wMDAwMCwg
LTAuNDg5ODFdWzAuMDA1MzAsIDEuNDgyNzEsIDBdWzAuMTQ1ODI1LCAyLjgxMjIxLCAtNS4z
NTQ2OV1bLTAuODY4MzIsIDAuMDI3MDMsIC0wLjQ5NTI2XVswLjA1OTAxLCAxLjQ4MjcxLCAw
XVswLjMxNTU3MSwgMi41MjcyNiwgLTUuMzAwOF1bLTAuOTA4NzcsIDAuMDI3MTUsIC0wLjQx
NjQyXVswLjA2NzI5LCAxLjQ3MTcwLCAwXVswLjMzMDc0NCwgMi40ODY1OSwgLTUuMjQ2MTZd
Wy0wLjg1NTU3LCAwLjAwMDAwLCAtMC41MTc2OV1bMC4wNzQ5NywgMS40Njg3MSwgMF1bMC4z
MjY0MDgsIDIuNDg4MTQsIC01LjQ1MDIyXVstMC45NDY5MCwgMC4wNzU0NywgLTAuMzEyNTVd
WzAuMDQ2NjEsIDEuNDY4NzEsIDBdWzAuMTk1MjM5LCAyLjQ3MTE0LCAtNS43NDQ5NV1bMC4w
MDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC42NTYyMSwgMS4wOTY3MywgMF1bMC4wNTY1MDgs
IDIuNzExMzksIC01Ljc0MDE3XVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjY5NDg2
LCAxLjA3NTI4LCAwXVswLjMyMDA5MywgMi40OTA0MSwgLTUuNzQ3NDVdWy0wLjAwMDAwLCAx
LjAwMDAwLCAwLjAwMDAwXVswLjY1OTMxLCAxLjExNjA0LCAwXVswLjA1NjU2MDgsIDIuMjMw
ODEsIC01Ljc0MzgzXVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjYxNzU3LCAxLjA3
NTI4LCAwXVswLjE5NTIzOSwgMi40NzExNCwgLTUuNzQ0OTVdWzAuMDAwMDAsIDEuMDAwMDAs
IDAuMDAwMDBdWzAuNjU2MjEsIDEuMDk2NzMsIDBdWzAuMzIwMTU0LCAxLjk0MDMzLCAtNS43
NTE2NF1bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC41NzA4NCwgMS4xMTYwNCwgMF1b
MC4xNjA5MjcsIDEuOTQwMjgsIC01Ljc0ODI2XVswLjAwMDAwLCAwLjAwMDAwLCAxLjAwMDAw
XVstMC4wMDAzNywgMS44Mzk5OSwgMF1bMC4zMjAxNTQsIDEuOTQwMzMsIC01Ljc1MTY0XVsw
LjAwMDAwLCAwLjAwMDAwLCAxLjAwMDAwXVstMC4wMDAzNywgMS44NTcwMywgMF1bMC4zMjY0
NjksIDEuOTM4MDYsIC01LjQ1NDQxXVswLjAwMDAwLCAtMC4wMDAwMCwgMS4wMDAwMF1bMC4w
MjY4OCwgMS44NTcwMywgMF1bMC40MDc4NDYsIDIuNDE4NjYsIC0xLjYxNzY0XVstMC4xNTkz
MiwgLTAuMDAwMDAsIC0wLjk4NzIzXVswLjU4NDk1LCAxLjQ2NjI4LCAwXVswLjM4NzgyOSwg
Mi40MjU4NCwgLTIuNTU5NzhdWy0wLjIzODI0LCAtMC4yNTY2OSwgLTAuOTM2NjddWzAuNDU1
NDMsIDEuNDY2MjgsIDBdWzAuMjU2MDAzLCAyLjQyNTgsIC0yLjU1Njk4XVswLjAwMDAwLCAt
MC4xNzEzMCwgLTAuOTg1MjJdWzAuNDU1NDMsIDEuNDc1MDksIDBdWzAuMTk3MzE3LCAyLjQ4
NDQ5LCAtNS4yNDMzNF1bLTAuMDY3NjUsIC0wLjUyNTk0LCAtMC44NDc4Ml1bMC4wNzQ5Nywg
MS40Nzc0MywgMF1bMC4yNDk0NDIsIDIuNDY2NjIsIC0yLjYyNjYxXVswLjAwMzk5LCAtMC4y
NTc3NywgLTAuOTY2MjBdWzAuNDQ1NzAsIDEuNDc3ODEsIDBdWzAuMzMwNzQ0LCAyLjQ4NjU5
LCAtNS4yNDYxNl1bMC4wMDk3MywgLTAuMjA1NzMsIC0wLjk3ODU2XVswLjA3NDk3LCAxLjQ2
ODcxLCAwXVswLjI3NjAyLCAyLjQxODYzLCAtMS42MTQ4NF1bLTAuMDAwMDAsIDEuMDAwMDAs
IC0wLjAwMDAwXVswLjI2MjY4LCAxLjQ3MzYyLCAwXVswLjIyNTM2NCwgMi43ODM2OSwgLTEu
NjEwOThdWy0wLjAwMDAwLCAxLjAwMDAwLCAtMC4wMDAwMF1bMC4yNjk3OCwgMS41MjE5NSwg
MF1bMC4zNjA3ODksIDIuNDk0NjEsIC0xLjYxNjA2XVstMC4wMDAwMCwgMS4wMDAwMCwgLTAu
MDAwMDBdWzAuMjU5MTEsIDEuNDg3ODcsIDBdWzAuMzYwNzg5LCAyLjQ5NDYxLCAtMS42MTYw
Nl1bLTAuMDAwMDAsIDEuMDAwMDAsIC0wLjAwMDAwXVswLjI1OTExLCAxLjQ4Nzg3LCAwXVsw
LjQwNzg0NiwgMi40MTg2NiwgLTEuNjE3NjRdWzAuMDAwMDAsIDEuMDAwMDAsIC0wLjAwMDAw
XVswLjI1MzYxLCAxLjQ3MzYyLCAwXVswLjI3NjAyLCAyLjQxODYzLCAtMS42MTQ4NF1bLTAu
MDAwMDAsIDEuMDAwMDAsIC0wLjAwMDAwXVswLjI2MjY4LCAxLjQ3MzYyLCAwXVswLjA2NTUz
OTUsIDIuNzA2NTgsIC01LjMzNzY3XVstMC4wNTgxMSwgLTAuOTU3MzAsIC0wLjI4MzE5XVsw
LjA2MTI1LCAxLjQ4NjAwLCAwXVswLjMxNTU3MSwgMi41MjcyNiwgLTUuMzAwOF1bLTAuMDU1
NzIsIC0wLjg1MDAxLCAtMC41MjM4MF1bMC4wNjcyOSwgMS40NzE3MCwgMF1bMC4xNDU4MjUs
IDIuODEyMjEsIC01LjM1NDY5XVswLjAxMzc0LCAtMC45ODY4MiwgLTAuMTYxMjRdWzAuMDU5
MDEsIDEuNDgyNzEsIDBdWzAuMDY1NTM5NSwgMi43MDY1OCwgLTUuMzM3NjddWy0wLjA1ODEx
LCAtMC45NTczMCwgLTAuMjgzMTldWzAuMDYxMjUsIDEuNDg2MDAsIDBdWzAuMTk3MzE3LCAy
LjQ4NDQ5LCAtNS4yNDMzNF1bLTAuMDY3NjUsIC0wLjUyNTk0LCAtMC44NDc4Ml1bMC4wNzQ5
NywgMS40Nzc0MywgMF1bMC4zMTU1NzEsIDIuNTI3MjYsIC01LjMwMDhdWy0wLjA1NTcyLCAt
MC44NTAwMSwgLTAuNTIzODBdWzAuMDY3MjksIDEuNDcxNzAsIDBdWzAuMzMwNzQ0LCAyLjQ4
NjU5LCAtNS4yNDYxNl1bMC4wMDk3MywgLTAuMjA1NzMsIC0wLjk3ODU2XVswLjA3NDk3LCAx
LjQ2ODcxLCAwXVswLjI0OTQ0MiwgMi40NjY2MiwgLTIuNjI2NjFdWzAuMDAzOTksIC0wLjI1
Nzc3LCAtMC45NjYyMF1bMC40NDU3MCwgMS40Nzc4MSwgMF1bMC4zODYzMzcsIDIuNDY2NjUs
IC0yLjYyOTUxXVstMC4zNDM2MSwgLTAuMjY1MzksIC0wLjkwMDgzXVswLjQ0NTcwLCAxLjQ2
ODcxLCAwXVswLjI0OTQ0MiwgMi40NjY2MiwgLTIuNjI2NjFdWzAuMDAzOTksIC0wLjI1Nzc3
LCAtMC45NjYyMF1bMC40NDU3MCwgMS40Nzc4MSwgMF1bMC4yNTYwMDMsIDIuNDI1OCwgLTIu
NTU2OThdWzAuMDAwMDAsIC0wLjE3MTMwLCAtMC45ODUyMl1bMC40NTU0MywgMS40NzUwOSwg
MF1bMC4zODc4MjksIDIuNDI1ODQsIC0yLjU1OTc4XVstMC4yMzgyNCwgLTAuMjU2NjksIC0w
LjkzNjY3XVswLjQ1NTQzLCAxLjQ2NjI4LCAwXVswLjE5NzMxNywgMi40ODQ0OSwgLTUuMjQz
MzRdWzAuOTkxOTEsIDAuMDAxMjEsIDAuMTI2OTRdWzAuMDc0OTcsIDEuNDc3NDMsIDBdWzAu
MjU2MDAzLCAyLjQyNTgsIC0yLjU1Njk4XVswLjk5MTkxLCAwLjAwMTIxLCAwLjEyNjk0XVsw
LjQ1NTQzLCAxLjQ3NTA5LCAwXVswLjI0OTQ0MiwgMi40NjY2MiwgLTIuNjI2NjFdWzAuOTkx
OTEsIDAuMDAxMjEsIDAuMTI2OTRdWzAuNDQ1NzAsIDEuNDc3ODEsIDBdWzAuMzYwNzg5LCAy
LjQ5NDYxLCAtMS42MTYwNl1bLTAuODQ4ODQsIC0wLjAwMjAzLCAtMC41Mjg2NV1bMC41ODQ5
NSwgMS40NzM0MywgMF1bMC4yMjUzNjQsIDIuNzgzNjksIC0xLjYxMDk4XVstMC45MDU1OSwg
MC4wMDAwMCwgLTAuNDI0MTZdWzAuNTg0OTUsIDEuNDg3MDgsIDBdWzAuMjYxNjQyLCAyLjc3
MDY5LCAwLjA5NjU2ODZdWy0wLjkwNTU5LCAwLjAwMDAwLCAtMC40MjQxNl1bMC44MDMxMSwg
MS40ODQ3OSwgMF1bMC40MzI4OCwgMi40MDIxNSwgLTIuNTYwOTJdWy0wLjg4NzY2LCAtMC4w
NzI5OCwgLTAuNDU0NjddWzAuNDU1NDMsIDEuNDU1MjQsIDBdWzAuMzczMDgyLCAxLjkzNzUx
LCAtNS4zODE2OV1bLTAuOTgzNjksIDAuMTc5ODUsIC0wLjAwMDAwXVswLjA1Njg1LCAxLjQw
Mjg3LCAwXVswLjM3MzAyOCwgMi40MjM2MSwgLTUuMzc3OTldWy0wLjk0MTUyLCAwLjIyNjI1
LCAtMC4yNDk3Ml1bMC4wNTY4NSwgMS40NTUyNCwgMF1bMC4zMTU1NzEsIDIuNTI3MjYsIC01
LjMwMDhdWy0wLjkwODc3LCAwLjAyNzE1LCAtMC40MTY0Ml1bMC4wNjcyOSwgMS40NzE3MCwg
MF1bMC4zMjY0MDgsIDIuNDg4MTQsIC01LjQ1MDIyXVstMC45NDY5MCwgMC4wNzU0NywgLTAu
MzEyNTVdWzAuMDQ2NjEsIDEuNDY4NzEsIDBdWzAuMTQ1ODI1LCAyLjgxMjIxLCAtNS4zNTQ2
OV1bLTAuODY4MzIsIDAuMDI3MDMsIC0wLjQ5NTI2XVswLjA1OTAxLCAxLjQ4MjcxLCAwXVsw
LjA1NjUwOCwgMi43MTEzOSwgLTUuNzQwMTddWzAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBd
WzAuNjk0ODYsIDEuMDc1MjgsIDBdWzAuMTM3NjE2LCAyLjgxNTE1LCAtNS43NDExXVswLjAw
MDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjcxMTU0LCAxLjA4NzgyLCAwXVswLjMyMDA5Mywg
Mi40OTA0MSwgLTUuNzQ3NDVdWy0wLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjY1OTMx
LCAxLjExNjA0LCAwXVswLjE5NTIzOSwgMi40NzExNCwgLTUuNzQ0OTVdWzAuMDAwMDAsIDEu
MDAwMDAsIDAuMDAwMDBdWzAuNjU2MjEsIDEuMDk2NzMsIDBdWzAuMzIwMDkzLCAyLjQ5MDQx
LCAtNS43NDc0NV1bLTAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNjU5MzEsIDEuMTE2
MDQsIDBdWzAuMzIwMTU0LCAxLjk0MDMzLCAtNS43NTE2NF1bMC4wMDAwMCwgMS4wMDAwMCwg
MC4wMDAwMF1bMC41NzA4NCwgMS4xMTYwNCwgMF1bMC4yNDk0NDIsIDIuNDY2NjIsIC0yLjYy
NjYxXVswLjAwMzk5LCAtMC4yNTc3NywgLTAuOTY2MjBdWzAuNDQ1NzAsIDEuNDc3ODEsIDBd
WzAuMzg3ODI5LCAyLjQyNTg0LCAtMi41NTk3OF1bLTAuMjM4MjQsIC0wLjI1NjY5LCAtMC45
MzY2N11bMC40NTU0MywgMS40NjYyOCwgMF1bMC4zODYzMzcsIDIuNDY2NjUsIC0yLjYyOTUx
XVstMC4zNDM2MSwgLTAuMjY1MzksIC0wLjkwMDgzXVswLjQ0NTcwLCAxLjQ2ODcxLCAwXVsw
LjI1NjAwMywgMi40MjU4LCAtMi41NTY5OF1bMC4wMDAwMCwgLTAuMTcxMzAsIC0wLjk4NTIy
XVswLjQ1NTQzLCAxLjQ3NTA5LCAwXVswLjI3NjAyLCAyLjQxODYzLCAtMS42MTQ4NF1bMC4w
MDAwMCwgLTAuMDAwMDAsIC0xLjAwMDAwXVswLjU4NDk1LCAxLjQ3NTA5LCAwXVswLjQwNzg0
NiwgMi40MTg2NiwgLTEuNjE3NjRdWy0wLjE1OTMyLCAtMC4wMDAwMCwgLTAuOTg3MjNdWzAu
NTg0OTUsIDEuNDY2MjgsIDBdWzAuMzE1NTcxLCAyLjUyNzI2LCAtNS4zMDA4XVstMC4wNTU3
MiwgLTAuODUwMDEsIC0wLjUyMzgwXVswLjA2NzI5LCAxLjQ3MTcwLCAwXVswLjE5NzMxNywg
Mi40ODQ0OSwgLTUuMjQzMzRdWy0wLjA2NzY1LCAtMC41MjU5NCwgLTAuODQ3ODJdWzAuMDc0
OTcsIDEuNDc3NDMsIDBdWzAuMzMwNzQ0LCAyLjQ4NjU5LCAtNS4yNDYxNl1bMC4wMDk3Mywg
LTAuMjA1NzMsIC0wLjk3ODU2XVswLjA3NDk3LCAxLjQ2ODcxLCAwXVswLjE2MDkyNywgMS45
NDAyOCwgLTUuNzQ4MjZdWzAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNTcwODQsIDEu
MDkxNDEsIDBdWzAuMDU2NTYwOCwgMi4yMzA4MSwgLTUuNzQzODNdWzAuMDAwMDAsIDEuMDAw
MDAsIDAuMDAwMDBdWzAuNjE3NTcsIDEuMDc1MjgsIDBdWzAuMzIwMTU0LCAxLjk0MDMzLCAt
NS43NTE2NF1bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC41NzA4NCwgMS4xMTYwNCwg
MF1bMC4zMjY0NjksIDEuOTM4MDYsIC01LjQ1NDQxXVswLjAwMDAwLCAtMC4wMDAwMCwgMS4w
MDAwMF1bMC4wMjY4OCwgMS44NTcwMywgMF1bMC4yMzk3MTgsIDEuOTM2OTYsIC01LjMxMTA4
XVswLjAwMDAwLCAtMC4wMDAwMCwgMS4wMDAwMF1bMC4wMzk4NSwgMS44NDc0MywgMF1bMC4x
NzAyMDEsIDEuOTM2OTYsIC01LjMxMTc4XVswLjAwMDAwLCAtMC4wMDAwMCwgMS4wMDAwMF1b
MC4wMzk2NSwgMS44Mzk5OSwgMF1bMC4wMzk1MjUzLCAxLjYzNzk3LCAtNS43NDc5OV1bLTAu
ODY2MDMsIDAuMDAwMDAsIDAuNTAwMDBdWzAuMDAwMzAsIDEuMjA3MzAsIDBdWzAuMTcwMzgs
IDEuODQ1MzQsIC01LjMxMjQ4XVstMC45NjYxNiwgMC4wMDAwMCwgMC4yNTc5M11bMC4wNzI5
OCwgMS4yMjUzOCwgMF1bMC4wNDg3OTg4LCAxLjYzNDY0LCAtNS4zMTE1XVstMC44NjYwMywg
MC4wMDAwMCwgMC41MDAwMF1bMC4wNzI5OCwgMS4yMDczMCwgMF1bMC4xNjA5MjcsIDEuOTQw
MjgsIC01Ljc0ODI2XVstMS4wMDAwMCwgMC4wMDAwMCwgLTAuMDAxODVdWzAuMDAwMzAsIDEu
MjI1MzYsIDBdWzAuMTcwMzgsIDEuODQ1MzQsIC01LjMxMjQ4XVstMC45NjYxNiwgMC4wMDAw
MCwgMC4yNTc5M11bMC4wNzI5OCwgMS4yMjUzOCwgMF1bMC4xNjExMDcsIDEuODQ4NjcsIC01
Ljc0ODk2XVstMC45NjYxNiwgMC4wMDAwMCwgMC4yNTc5M11bMC4wMDAzMCwgMS4yMjUzOCwg
MF1bMC4xNzAzOCwgMS44NDUzNCwgLTUuMzEyNDhdWy0wLjk2NjE2LCAwLjAwMDAwLCAwLjI1
NzkzXVswLjA3Mjk4LCAxLjIyNTM4LCAwXVswLjE2MDkyNywgMS45NDAyOCwgLTUuNzQ4MjZd
Wy0xLjAwMDAwLCAwLjAwMDAwLCAtMC4wMDE4NV1bMC4wMDAzMCwgMS4yMjUzNiwgMF1bMC4x
NzAyMDEsIDEuOTM2OTYsIC01LjMxMTc4XVstMS4wMDAwMCwgMC4wMDAwMCwgLTAuMDAxODVd
WzAuMDcyOTgsIDEuMjI1MzYsIDBdWzAuMTcwMjAxLCAxLjkzNjk2LCAtNS4zMTE3OF1bMC4w
MDAwMCwgLTAuMDAwMDAsIDEuMDAwMDBdWzAuMDM5NjUsIDEuODM5OTksIDBdWzAuMTYwOTI3
LCAxLjk0MDI4LCAtNS43NDgyNl1bMC4wMDAwMCwgMC4wMDAwMCwgMS4wMDAwMF1bLTAuMDAw
MzcsIDEuODM5OTksIDBdWzAuMzI2NDY5LCAxLjkzODA2LCAtNS40NTQ0MV1bMC4wMDAwMCwg
LTAuMDAwMDAsIDEuMDAwMDBdWzAuMDI2ODgsIDEuODU3MDMsIDBdWzAuMTYxMTA3LCAxLjg0
ODY3LCAtNS43NDg5Nl1bLTAuOTY2MTYsIDAuMDAwMDAsIDAuMjU3OTNdWzAuMDAwMzAsIDEu
MjI1MzgsIDBdWzAuMTcwMzgsIDEuODQ1MzQsIC01LjMxMjQ4XVstMC45NjYxNiwgMC4wMDAw
MCwgMC4yNTc5M11bMC4wNzI5OCwgMS4yMjUzOCwgMF1bMC4wMzk1MjUzLCAxLjYzNzk3LCAt
NS43NDc5OV1bLTAuODY2MDMsIDAuMDAwMDAsIDAuNTAwMDBdWzAuMDAwMzAsIDEuMjA3MzAs
IDBdWzAuNTAzMDQ2LCAxLjg5MDkxLCAwLjczNTQ1NF1bLTAuOTk5ODQsIC0wLjAwMzU2LCAt
MC4wMTcyOF1bMC45MDE1NywgMS40MDI4NywgMF1bMC4zNzMwODIsIDEuOTM3NTEsIC01LjM4
MTY5XVstMC45ODM2OSwgMC4xNzk4NSwgLTAuMDAwMDBdWzAuMDU2ODUsIDEuNDAyODcsIDBd
WzAuNDMyODgsIDIuNDAyMTUsIC0yLjU2MDkyXVstMC44ODc2NiwgLTAuMDcyOTgsIC0wLjQ1
NDY3XVswLjQ1NTQzLCAxLjQ1NTI0LCAwXVswLjUwMzA0NiwgMS44OTA5MSwgMC43MzU0NTRd
WzAuMDAwMDAsIC0wLjAwMDAwLCAxLjAwMDAwXVswLjU5NDQyLCAxLjg2MTg1LCAwXVswLjIz
OTcxOCwgMS45MzY5NiwgLTUuMzExMDhdWzAuMDAwMDAsIC0wLjAwMDAwLCAxLjAwMDAwXVsw
LjAzOTg1LCAxLjg0NzQzLCAwXVswLjMyNjQ2OSwgMS45MzgwNiwgLTUuNDU0NDFdWzAuMDAw
MDAsIC0wLjAwMDAwLCAxLjAwMDAwXVswLjAyNjg4LCAxLjg1NzAzLCAwXVswLjMyMDA5Mywg
Mi40OTA0MSwgLTUuNzQ3NDVdWy0wLjk2NzQzLCAtMC4wMDAwMCwgLTAuMjUzMTVdWzAuMDA1
MzAsIDEuNDY4NzEsIDBdWzAuMzI2NDA4LCAyLjQ4ODE0LCAtNS40NTAyMl1bLTAuOTQ2OTAs
IDAuMDc1NDcsIC0wLjMxMjU1XVswLjA0NjYxLCAxLjQ2ODcxLCAwXVswLjMyMDE1NCwgMS45
NDAzMywgLTUuNzUxNjRdWy0xLjAwMDAwLCAwLjAwMDAwLCAtMC4wMDAwMF1bMC4wMDUzMCwg
MS40MDExMCwgMF1bMC4zMjY0MDgsIDIuNDg4MTQsIC01LjQ1MDIyXVstMC45NDY5MCwgMC4w
NzU0NywgLTAuMzEyNTVdWzAuMDQ2NjEsIDEuNDY4NzEsIDBdWzAuMzIwMDkzLCAyLjQ5MDQx
LCAtNS43NDc0NV1bLTAuOTY3NDMsIC0wLjAwMDAwLCAtMC4yNTMxNV1bMC4wMDUzMCwgMS40
Njg3MSwgMF1bMC4xMzc2MTYsIDIuODE1MTUsIC01Ljc0MTFdWy0wLjg3MTgzLCAwLjAwMDAw
LCAtMC40ODk4MV1bMC4wMDUzMCwgMS40ODI3MSwgMF1bMC40MzI4OCwgMi40MDIxNSwgLTIu
NTYwOTJdWy0wLjg4NzY2LCAtMC4wNzI5OCwgLTAuNDU0NjddWzAuNDU1NDMsIDEuNDU1MjQs
IDBdWzAuMzMwNzQ0LCAyLjQ4NjU5LCAtNS4yNDYxNl1bLTAuODU1NTcsIDAuMDAwMDAsIC0w
LjUxNzY5XVswLjA3NDk3LCAxLjQ2ODcxLCAwXVswLjM4NjMzNywgMi40NjY2NSwgLTIuNjI5
NTFdWy0wLjM0MzYxLCAtMC4yNjUzOSwgLTAuOTAwODNdWzAuNDQ1NzAsIDEuNDY4NzEsIDBd
WzAuMzMwNzQ0LCAyLjQ4NjU5LCAtNS4yNDYxNl1bLTAuODU1NTcsIDAuMDAwMDAsIC0wLjUx
NzY5XVswLjA3NDk3LCAxLjQ2ODcxLCAwXVswLjQzMjg4LCAyLjQwMjE1LCAtMi41NjA5Ml1b
LTAuODg3NjYsIC0wLjA3Mjk4LCAtMC40NTQ2N11bMC40NTU0MywgMS40NTUyNCwgMF1bMC4z
NzMwMjgsIDIuNDIzNjEsIC01LjM3Nzk5XVstMC45NDE1MiwgMC4yMjYyNSwgLTAuMjQ5NzJd
WzAuMDU2ODUsIDEuNDU1MjQsIDBdWzAuNDMyODgsIDIuNDAyMTUsIC0yLjU2MDkyXVstMC44
ODc2NiwgLTAuMDcyOTgsIC0wLjQ1NDY3XVswLjQ1NTQzLCAxLjQ1NTI0LCAwXVswLjM4NjMz
NywgMi40NjY2NSwgLTIuNjI5NTFdWy0wLjM0MzYxLCAtMC4yNjUzOSwgLTAuOTAwODNdWzAu
NDQ1NzAsIDEuNDY4NzEsIDBdWzAuMzg3ODI5LCAyLjQyNTg0LCAtMi41NTk3OF1bLTAuMjM4
MjQsIC0wLjI1NjY5LCAtMC45MzY2N11bMC40NTU0MywgMS40NjYyOCwgMF1bMC40NzUxNzUs
IDIuMzc4MjYsIDAuNDkwNDU0XVstMC44OTExNCwgLTAuMDA2NTMsIC0wLjQ1MzY4XVswLjg2
Njk0LCAxLjQ1NjQ5LCAwXVswLjM2MDc4OSwgMi40OTQ2MSwgLTEuNjE2MDZdWy0wLjg0ODg0
LCAtMC4wMDIwMywgLTAuNTI4NjVdWzAuNTg0OTUsIDEuNDczNDMsIDBdWzAuNDA0NDA0LCAy
LjQ3ODk3LCAwLjQzNjgxXVstMC44NjY2OSwgMC4wMDAwMCwgLTAuNDk4ODVdWzAuODU1Njcs
IDEuNDc0NDcsIDBdWzAuMzYwNzg5LCAyLjQ5NDYxLCAtMS42MTYwNl1bLTAuODQ4ODQsIC0w
LjAwMjAzLCAtMC41Mjg2NV1bMC41ODQ5NSwgMS40NzM0MywgMF1bMC40NzUxNzUsIDIuMzc4
MjYsIDAuNDkwNDU0XVstMC44OTExNCwgLTAuMDA2NTMsIC0wLjQ1MzY4XVswLjg2Njk0LCAx
LjQ1NjQ5LCAwXVswLjQ1Mjg5NiwgMi4zOTQ5NywgLTEuNjE4NzddWy0wLjk2NjA2LCAtMC4w
MDY2MiwgLTAuMjU4MjRdWzAuNTg0OTUsIDEuNDU1MjQsIDBdWzAuMzczMDI4LCAyLjQyMzYx
LCAtNS4zNzc5OV1bLTAuOTQxNTIsIDAuMjI2MjUsIC0wLjI0OTcyXVswLjA1Njg1LCAxLjQ1
NTI0LCAwXVswLjMyNjQwOCwgMi40ODgxNCwgLTUuNDUwMjJdWy0wLjk0NjkwLCAwLjA3NTQ3
LCAtMC4zMTI1NV1bMC4wNDY2MSwgMS40Njg3MSwgMF1bMC4zMzA3NDQsIDIuNDg2NTksIC01
LjI0NjE2XVstMC44NTU1NywgMC4wMDAwMCwgLTAuNTE3NjldWzAuMDc0OTcsIDEuNDY4NzEs
IDBdWzAuMzczMDI4LCAyLjQyMzYxLCAtNS4zNzc5OV1bLTAuOTQxNTIsIDAuMjI2MjUsIC0w
LjI0OTcyXVswLjA1Njg1LCAxLjQ1NTI0LCAwXVswLjMyNjQ2OSwgMS45MzgwNiwgLTUuNDU0
NDFdWy0wLjkzMzA3LCAwLjM1OTcwLCAtMC4wMDAwMF1bMC4wNDY2MSwgMS40MDExMCwgMF1b
MC4zMjY0MDgsIDIuNDg4MTQsIC01LjQ1MDIyXVstMC45NDY5MCwgMC4wNzU0NywgLTAuMzEy
NTVdWzAuMDQ2NjEsIDEuNDY4NzEsIDBdWzAuMzI2NDY5LCAxLjkzODA2LCAtNS40NTQ0MV1b
LTAuOTMzMDcsIDAuMzU5NzAsIC0wLjAwMDAwXVswLjA0NjYxLCAxLjQwMTEwLCAwXVswLjM3
MzAyOCwgMi40MjM2MSwgLTUuMzc3OTldWy0wLjk0MTUyLCAwLjIyNjI1LCAtMC4yNDk3Ml1b
MC4wNTY4NSwgMS40NTUyNCwgMF1bMC4zNzMwODIsIDEuOTM3NTEsIC01LjM4MTY5XVstMC45
ODM2OSwgMC4xNzk4NSwgLTAuMDAwMDBdWzAuMDU2ODUsIDEuNDAyODcsIDBdWzAuNDUyODk2
LCAyLjM5NDk3LCAtMS42MTg3N11bLTAuNDY1NjAsIDAuMDAwMDAsIC0wLjg4NTAwXVswLjU4
NDk1LCAxLjQ1NTI0LCAwXVswLjM4NzgyOSwgMi40MjU4NCwgLTIuNTU5NzhdWy0wLjIzODI0
LCAtMC4yNTY2OSwgLTAuOTM2NjddWzAuNDU1NDMsIDEuNDY2MjgsIDBdWzAuNDA3ODQ2LCAy
LjQxODY2LCAtMS42MTc2NF1bLTAuMTU5MzIsIC0wLjAwMDAwLCAtMC45ODcyM11bMC41ODQ5
NSwgMS40NjYyOCwgMF1bMC4zODc4MjksIDIuNDI1ODQsIC0yLjU1OTc4XVstMC4yMzgyNCwg
LTAuMjU2NjksIC0wLjkzNjY3XVswLjQ1NTQzLCAxLjQ2NjI4LCAwXVswLjQ1Mjg5NiwgMi4z
OTQ5NywgLTEuNjE4NzddWy0wLjQ2NTYwLCAwLjAwMDAwLCAtMC44ODUwMF1bMC41ODQ5NSwg
MS40NTUyNCwgMF1bMC40MzI4OCwgMi40MDIxNSwgLTIuNTYwOTJdWy0wLjg4NzY2LCAtMC4w
NzI5OCwgLTAuNDU0NjddWzAuNDU1NDMsIDEuNDU1MjQsIDBdWzAuNDUyODk2LCAyLjM5NDk3
LCAtMS42MTg3N11bLTAuMDAwMDEsIDEuMDAwMDAsIC0wLjAwMDAxXVswLjU4NDk1LCAxLjQ1
NTI0LCAwXVswLjQwNzg0NiwgMi40MTg2NiwgLTEuNjE3NjRdWy0wLjAwMDAxLCAxLjAwMDAw
LCAtMC4wMDAwMV1bMC41ODQ5NSwgMS40NjYyOCwgMF1bMC4zNjA3ODksIDIuNDk0NjEsIC0x
LjYxNjA2XVstMC4wMDAwMSwgMS4wMDAwMCwgLTAuMDAwMDFdWzAuNTg0OTUsIDEuNDczNDMs
IDBdWzAuMzczMDgyLCAxLjkzNzUxLCAtNS4zODE2OV1bMC4wMDAwMCwgLTAuMDAwMDAsIDEu
MDAwMDBdWzAuMDMzNjMsIDEuODYxODUsIDBdWzAuNTAzMDQ2LCAxLjg5MDkxLCAwLjczNTQ1
NF1bMC4wMDAwMCwgLTAuMDAwMDAsIDEuMDAwMDBdWzAuNTk0NDIsIDEuODYxODUsIDBdWzAu
MzI2NDY5LCAxLjkzODA2LCAtNS40NTQ0MV1bMC4wMDAwMCwgLTAuMDAwMDAsIDEuMDAwMDBd
WzAuMDI2ODgsIDEuODU3MDMsIDBdWzAuMDQyMTc5NiwgMi43NzAxLCAwLjE3MDU1OF1bMC4w
MDAwMCwgLTAuMzU2MzMsIC0wLjkzNDM2XVswLjgwOTAyLCAxLjQ5NzQ0LCAwXVswLjI2MTY0
MiwgMi43NzA2OSwgMC4wOTY1Njg2XVstMC4wOTc0MywgLTAuMzEwNjIsIC0wLjk0NTUzXVsw
LjgwMzExLCAxLjQ4NDc5LCAwXVswLjIyNTM2NCwgMi43ODM2OSwgLTEuNjEwOThdWzAuMDAw
MDAsIDAuMDAwMDAsIC0xLjAwMDAwXVswLjU4NDk1LCAxLjQ4NzA4LCAwXVswLjA1MDEyMjUs
IDIuNDkwNTEsIDAuNTQwODc2XVswLjAwMDAwLCAtMC44MDU1MiwgLTAuNTkyNTZdWzAuODYx
NzcsIDEuNDk3MzgsIDBdWzAuMDU2Njg4MiwgMS44OTAwNSwgMC44NDIyNTldWy0wLjAwMDAw
LCAtMC44OTAyNSwgLTAuNDU1NDZdWzAuOTAyMjIsIDEuNDk2ODMsIDBdWzAuNTAzMDQ2LCAx
Ljg5MDkxLCAwLjczNTQ1NF1bLTAuMTk2MjEsIC0wLjg3MDcyLCAtMC40NTA5NV1bMC45MDE1
NywgMS40MDI4NywgMF1bMC4wNTAxMjI1LCAyLjQ5MDUxLCAwLjU0MDg3Nl1bMC4wMDAwMCwg
LTAuODA1NTIsIC0wLjU5MjU2XVswLjg2MTc3LCAxLjQ5NzM4LCAwXVswLjQ3NTE3NSwgMi4z
NzgyNiwgMC40OTA0NTRdWy0wLjIxNzA0LCAtMC44MjMzMiwgLTAuNTI0NDRdWzAuODY2OTQs
IDEuNDU2NDksIDBdWzAuNDA0NDA0LCAyLjQ3ODk3LCAwLjQzNjgxXVstMC4yMDE3MCwgLTAu
NjU0NTUsIC0wLjcyODYyXVswLjg1NTY3LCAxLjQ3NDQ3LCAwXVswLjA0MjE3OTYsIDIuNzcw
MSwgMC4xNzA1NThdWzAuMDAwMDAsIC0wLjM1NjMzLCAtMC45MzQzNl1bMC44MDkwMiwgMS40
OTc0NCwgMF1bMC40MDQ0MDQsIDIuNDc4OTcsIDAuNDM2ODFdWy0wLjIwMTcwLCAtMC42NTQ1
NSwgLTAuNzI4NjJdWzAuODU1NjcsIDEuNDc0NDcsIDBdWzAuMjYxNjQyLCAyLjc3MDY5LCAw
LjA5NjU2ODZdWy0wLjA5NzQzLCAtMC4zMTA2MiwgLTAuOTQ1NTNdWzAuODAzMTEsIDEuNDg0
NzksIDBdWzAuMDU2Njg4MiwgMS44OTAwNSwgMC44NDIyNTldWy0wLjAwMDAwLCAwLjAwMDAw
LCAxLjAwMDAwXVswLjYwMzMzLCAxLjgxMzg3LCAwXVswLjIzOTcxOCwgMS45MzY5NiwgLTUu
MzExMDhdWzAuMDAwMDAsIC0wLjAwMDAwLCAxLjAwMDAwXVswLjAzOTg1LCAxLjg0NzQzLCAw
XVswLjUwMzA0NiwgMS44OTA5MSwgMC43MzU0NTRdWzAuMDAwMDAsIC0wLjAwMDAwLCAxLjAw
MDAwXVswLjU5NDQyLCAxLjg2MTg1LCAwXVswLjAzOTUyNTMsIDEuNjM3OTcsIC01Ljc0Nzk5
XVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjUyMjIyLCAxLjA3MjYzLCAwXVswLjA1
NjU2MDgsIDIuMjMwODEsIC01Ljc0MzgzXVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVsw
LjYxNzU3LCAxLjA3NTI4LCAwXVswLjE2MDkyNywgMS45NDAyOCwgLTUuNzQ4MjZdWzAuMDAw
MDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNTcwODQsIDEuMDkxNDEsIDBdWzAuMDM5NTI1Mywg
MS42Mzc5NywgLTUuNzQ3OTldWzAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNTIyMjIs
IDEuMDcyNjMsIDBdWzAuMTYwOTI3LCAxLjk0MDI4LCAtNS43NDgyNl1bMC4wMDAwMCwgMS4w
MDAwMCwgMC4wMDAwMF1bMC41NzA4NCwgMS4wOTE0MSwgMF1bMC4xNjExMDcsIDEuODQ4Njcs
IC01Ljc0ODk2XVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjU1NjEwLCAxLjA5MTQ0
LCAwXVswLjA1MDEyMjUsIDIuNDkwNTEsIDAuNTQwODc2XVswLjAwMDAwLCAtMC44MDU1Miwg
LTAuNTkyNTZdWzAuODYxNzcsIDEuNDk3MzgsIDBdWzAuNTAzMDQ2LCAxLjg5MDkxLCAwLjcz
NTQ1NF1bLTAuMTk2MjEsIC0wLjg3MDcyLCAtMC40NTA5NV1bMC45MDE1NywgMS40MDI4Nywg
MF1bMC40NzUxNzUsIDIuMzc4MjYsIDAuNDkwNDU0XVstMC4yMTcwNCwgLTAuODIzMzIsIC0w
LjUyNDQ0XVswLjg2Njk0LCAxLjQ1NjQ5LCAwXVswLjA0MjE3OTYsIDIuNzcwMSwgMC4xNzA1
NThdWzAuMDAwMDAsIC0wLjM1NjMzLCAtMC45MzQzNl1bMC44MDkwMiwgMS40OTc0NCwgMF1b
MC4wNTAxMjI1LCAyLjQ5MDUxLCAwLjU0MDg3Nl1bMC4wMDAwMCwgLTAuODA1NTIsIC0wLjU5
MjU2XVswLjg2MTc3LCAxLjQ5NzM4LCAwXVswLjQwNDQwNCwgMi40Nzg5NywgMC40MzY4MV1b
LTAuMjAxNzAsIC0wLjY1NDU1LCAtMC43Mjg2Ml1bMC44NTU2NywgMS40NzQ0NywgMF1bLTAu
MzUxODY3LCAyLjQ5NDQyLCAtMS42MDA5Ml1bMC44NDg4NCwgLTAuMDAyMDMsIC0wLjUyODY1
XVswLjU4NDk1LCAxLjUzNjAwLCAwXVstMC4zMDgyNTIsIDIuNDc4NzgsIDAuNDUxOTQ5XVsw
Ljg2NjY5LCAtMC4wMDAwMCwgLTAuNDk4ODVdWzAuODU1NjcsIDEuNTM0OTcsIDBdWy0wLjE4
MDIyOCwgMi43NzA1NywgMC4xMDU5NTZdWzAuOTA1NTksIDAuMDAwMDAsIC0wLjQyNDE2XVsw
LjgwMzExLCAxLjUyMDQ4LCAwXVstMC40ODY2LCAxLjk0MDExLCAtNS43MzQ1MV1bMS4wMDAw
MCwgLTAuMDAwMDAsIDAuMDAwMDBdWzAuMDA1MzAsIDEuNjA2MDQsIDBdWy0wLjQ4MDI4NSwg
MS45Mzc4NCwgLTUuNDM3MjddWzAuOTMzMDcsIDAuMzU5NzAsIDAuMDAwMDBdWzAuMDQ2NjEs
IDEuNjA2MDQsIDBdWy0wLjQ4MDM0NiwgMi40ODc5MiwgLTUuNDMzMDhdWzAuOTQ2OTAsIDAu
MDc1NDcsIC0wLjMxMjU0XVswLjA0NjYxLCAxLjU0MDc0LCAwXVstMC40NjM5NywgMi40MDE5
LCAtMi41NDE4N11bMC44ODc2NywgLTAuMDcyOTgsIC0wLjQ1NDY3XVswLjQ1NTQzLCAxLjU1
NDIzLCAwXVstMC4zOTM4MDQsIDEuODkwNjcsIDAuNzU0NTA3XVswLjk5OTg0LCAtMC4wMDM1
NiwgLTAuMDE3MjhdWzAuOTAxNTcsIDEuNjA0MjUsIDBdWy0wLjQ0Mzk1MywgMi4zOTQ3Mywg
LTEuNTk5NzJdWzAuOTY2MDYsIC0wLjAwNjYyLCAtMC4yNTgyNF1bMC41ODQ5NSwgMS41NTQy
MywgMF1bLTAuNDQzOTUzLCAyLjM5NDczLCAtMS41OTk3Ml1bMC45NjYwNiwgLTAuMDA2NjIs
IC0wLjI1ODI0XVswLjU4NDk1LCAxLjU1NDIzLCAwXVstMC4zOTM4MDQsIDEuODkwNjcsIDAu
NzU0NTA3XVswLjk5OTg0LCAtMC4wMDM1NiwgLTAuMDE3MjhdWzAuOTAxNTcsIDEuNjA0MjUs
IDBdWy0wLjM3NjYyNywgMi4zNzgwMywgMC41MDg1NDldWzAuODkxMTQsIC0wLjAwNjUzLCAt
MC40NTM2OF1bMC44NjY5NCwgMS41NTI5NywgMF1bLTAuNDgwMzQ2LCAyLjQ4NzkyLCAtNS40
MzMwOF1bMC45NDY5MCwgMC4wNzU0NywgLTAuMzEyNTRdWzAuMDQ2NjEsIDEuNTQwNzQsIDBd
Wy0wLjI5NjA0NSwgMi44MTIwOSwgLTUuMzQ1M11bMC44NjgzMiwgMC4wMjcwMywgLTAuNDk1
MjZdWzAuMDU5MDEsIDEuNTA5NjUsIDBdWy0wLjMwNDI1NSwgMi44MTUwMywgLTUuNzMxNzJd
WzAuODcxODMsIC0wLjAwMDAwLCAtMC40ODk4MV1bMC4wMDUzMCwgMS41MDk2NSwgMF1bLTAu
NDYzMTk0LCAyLjUyNzA1LCAtNS4yODQyNV1bMC45MDg3NywgMC4wMjcxNSwgLTAuNDE2NDJd
WzAuMDY3MjksIDEuNTM3NzUsIDBdWy0wLjQ4MDM0NiwgMi40ODc5MiwgLTUuNDMzMDhdWzAu
OTQ2OTAsIDAuMDc1NDcsIC0wLjMxMjU0XVswLjA0NjYxLCAxLjU0MDc0LCAwXVstMC40NzYw
MSwgMi40ODYzNywgLTUuMjI5MDJdWzAuODU1NTcsIC0wLjAwMDAwLCAtMC41MTc2OV1bMC4w
NzQ5NywgMS41NDA3NCwgMF1bLTAuMzYxODAzLCAyLjQ3MDk5LCAtNS43MzMxMV1bLTAuMDAw
MDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNjU2MjEsIDEuMDEwNTcsIDBdWy0wLjQ4NjY2MSwg
Mi40OTAxOSwgLTUuNzMwMzFdWzAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNjU5MzEs
IDAuOTkxMjYsIDBdWy0wLjIyMzEyNCwgMi43MTEzMiwgLTUuNzM0MjNdWzAuMDAwMDAsIDEu
MDAwMDAsIDAuMDAwMDBdWzAuNjk0ODYsIDEuMDMyMDMsIDBdWy0wLjIyMzA3MSwgMi4yMzA3
NCwgLTUuNzM3ODldWy0wLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjYxNzU3LCAxLjAz
MjAzLCAwXVstMC40ODY2LCAxLjk0MDExLCAtNS43MzQ1MV1bLTAuMDAwMDAsIDEuMDAwMDAs
IDAuMDAwMDBdWzAuNTcwODQsIDAuOTkxMjYsIDBdWy0wLjM2MTgwMywgMi40NzA5OSwgLTUu
NzMzMTFdWy0wLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjY1NjIxLCAxLjAxMDU3LCAw
XVstMC4zODc1MjUsIDEuOTM2NzksIC01LjI5Nzc2XVstMC4wMDAwMCwgLTAuMDAwMDAsIDEu
MDAwMDBdWzAuMDM5ODUsIDEuNzgwMzIsIDBdWzAuMjM5NzE4LCAxLjkzNjk2LCAtNS4zMTEw
OF1bMC4wMDAwMCwgLTAuMDAwMDAsIDEuMDAwMDBdWzAuMDM5ODUsIDEuODQ3NDMsIDBdWzAu
MDU2Njg4MiwgMS44OTAwNSwgMC44NDIyNTldWy0wLjAwMDAwLCAwLjAwMDAwLCAxLjAwMDAw
XVswLjYwMzMzLCAxLjgxMzg3LCAwXVstMC4zMjczNzQsIDEuOTQwMTUsIC01LjczNzg5XVst
MC4wMDAwMCwgMC4wMDAwMCwgMS4wMDAwMF1bLTAuMDAwMzcsIDEuNzg3NzUsIDBdWy0wLjQ4
MDI4NSwgMS45Mzc4NCwgLTUuNDM3MjddWy0wLjAwMDAwLCAtMC4wMDAwMCwgMS4wMDAwMF1b
MC4wMjY4OCwgMS43NzA3MiwgMF1bLTAuNDg2NiwgMS45NDAxMSwgLTUuNzM0NTFdWzAuMDAw
MDAsIDAuMDAwMDAsIDEuMDAwMDBdWy0wLjAwMDM3LCAxLjc3MDcyLCAwXVstMC4zOTg5MDgs
IDIuNDE4NDQsIC0xLjYwMDVdWzAuMTU5MzMsIC0wLjAwMDAwLCAtMC45ODcyM11bMC41ODQ5
NSwgMS41NDMxNywgMF1bLTAuMjg3MDk5LCAyLjQyNTY2LCAtMi41NDU0NF1bMC4wMDAwMCwg
LTAuMTcxMzAsIC0wLjk4NTIyXVswLjQ1NTQzLCAxLjUzNDMwLCAwXVstMC40MTg5MjUsIDIu
NDI1NjIsIC0yLjU0MjY0XVswLjIzODI0LCAtMC4yNTY2OSwgLTAuOTM2NjddWzAuNDU1NDMs
IDEuNTQzMTcsIDBdWy0wLjM0MjU4MywgMi40ODQzNCwgLTUuMjMxODddWzAuMDY3NjUsIC0w
LjUyNTk1LCAtMC44NDc4Ml1bMC4wNzQ5NywgMS41MzE5NiwgMF1bLTAuNDc2MDEsIDIuNDg2
MzcsIC01LjIyOTAyXVstMC4wMDk3MiwgLTAuMjA1NzMsIC0wLjk3ODU2XVswLjA3NDk3LCAx
LjU0MDc0LCAwXVstMC4yODM1MjMsIDIuNDY2NDcsIC0yLjYxNTI4XVstMC4wMDM5OSwgLTAu
MjU3NzcsIC0wLjk2NjIwXVswLjQ0NTcwLCAxLjUzMTU4LCAwXVstMC4yNjcwODIsIDIuNDE4
NDgsIC0xLjYwMzNdWzAuMDAwMDAsIDEuMDAwMDAsIC0wLjAwMDAwXVswLjMzODkzLCAxLjQ3
MzYyLCAwXVstMC4zNTE4NjcsIDIuNDk0NDIsIC0xLjYwMDkyXVswLjAwMDAwLCAxLjAwMDAw
LCAtMC4wMDAwMF1bMC4zNDI1MCwgMS40ODc4NywgMF1bLTAuMjE2NTA2LCAyLjc4MzU3LCAt
MS42MDE1OV1bMC4wMDAwMCwgMS4wMDAwMCwgLTAuMDAwMDBdWzAuMzMxODMsIDEuNTIxOTUs
IDBdWy0wLjM1MTg2NywgMi40OTQ0MiwgLTEuNjAwOTJdWzAuMDAwMDAsIDEuMDAwMDAsIC0w
LjAwMDAwXVswLjM0MjUwLCAxLjQ4Nzg3LCAwXVstMC4yNjcwODIsIDIuNDE4NDgsIC0xLjYw
MzNdWzAuMDAwMDAsIDEuMDAwMDAsIC0wLjAwMDAwXVswLjMzODkzLCAxLjQ3MzYyLCAwXVst
MC4zOTg5MDgsIDIuNDE4NDQsIC0xLjYwMDVdWzAuMDAwMDAsIDEuMDAwMDAsIC0wLjAwMDAw
XVswLjM0ODAwLCAxLjQ3MzYyLCAwXVstMC4yMTUwNTEsIDIuNzA2NSwgLTUuMzMxNzFdWzAu
MDQzNDQsIC0wLjk2NzI0LCAtMC4yNTAxM11bMC4wNjEyNSwgMS41MDYzMiwgMF1bLTAuMjk2
MDQ1LCAyLjgxMjA5LCAtNS4zNDUzXVstMC4wMjA2MSwgLTAuOTg1ODUsIC0wLjE2NjM0XVsw
LjA1OTAxLCAxLjUwOTY1LCAwXVstMC40NjMxOTQsIDIuNTI3MDUsIC01LjI4NDI1XVswLjA1
NTcyLCAtMC44NTAwMiwgLTAuNTIzODBdWzAuMDY3MjksIDEuNTM3NzUsIDBdWy0wLjIxNTA1
MSwgMi43MDY1LCAtNS4zMzE3MV1bMC4wNDM0NCwgLTAuOTY3MjQsIC0wLjI1MDEzXVswLjA2
MTI1LCAxLjUwNjMyLCAwXVstMC40NjMxOTQsIDIuNTI3MDUsIC01LjI4NDI1XVswLjA1NTcy
LCAtMC44NTAwMiwgLTAuNTIzODBdWzAuMDY3MjksIDEuNTM3NzUsIDBdWy0wLjM0MjU4Mywg
Mi40ODQzNCwgLTUuMjMxODddWzAuMDY3NjUsIC0wLjUyNTk1LCAtMC44NDc4Ml1bMC4wNzQ5
NywgMS41MzE5NiwgMF1bLTAuNDc2MDEsIDIuNDg2MzcsIC01LjIyOTAyXVstMC4wMDk3Miwg
LTAuMjA1NzMsIC0wLjk3ODU2XVswLjA3NDk3LCAxLjU0MDc0LCAwXVstMC40MjA0MTcsIDIu
NDY2NDMsIC0yLjYxMjM4XVswLjM0MzYyLCAtMC4yNjUzOCwgLTAuOTAwODNdWzAuNDQ1NzAs
IDEuNTQwNzQsIDBdWy0wLjI4MzUyMywgMi40NjY0NywgLTIuNjE1MjhdWy0wLjAwMzk5LCAt
MC4yNTc3NywgLTAuOTY2MjBdWzAuNDQ1NzAsIDEuNTMxNTgsIDBdWy0wLjI4MzUyMywgMi40
NjY0NywgLTIuNjE1MjhdWy0wLjAwMzk5LCAtMC4yNTc3NywgLTAuOTY2MjBdWzAuNDQ1NzAs
IDEuNTMxNTgsIDBdWy0wLjQxODkyNSwgMi40MjU2MiwgLTIuNTQyNjRdWzAuMjM4MjQsIC0w
LjI1NjY5LCAtMC45MzY2N11bMC40NTU0MywgMS41NDMxNywgMF1bLTAuMjg3MDk5LCAyLjQy
NTY2LCAtMi41NDU0NF1bMC4wMDAwMCwgLTAuMTcxMzAsIC0wLjk4NTIyXVswLjQ1NTQzLCAx
LjUzNDMwLCAwXVstMC4zNDI1ODMsIDIuNDg0MzQsIC01LjIzMTg3XVstMC45OTE5MSwgMC4w
MDEyMSwgMC4xMjY5NV1bMC4wNzQ5NywgMS41MzE5NiwgMF1bLTAuMjgzNTIzLCAyLjQ2NjQ3
LCAtMi42MTUyOF1bLTAuOTkxOTEsIDAuMDAxMjEsIDAuMTI2OTVdWzAuNDQ1NzAsIDEuNTMx
NTgsIDBdWy0wLjI4NzA5OSwgMi40MjU2NiwgLTIuNTQ1NDRdWy0wLjk5MTkxLCAwLjAwMTIx
LCAwLjEyNjk1XVswLjQ1NTQzLCAxLjUzNDMwLCAwXVstMC4zNTE4NjcsIDIuNDk0NDIsIC0x
LjYwMDkyXVswLjg0ODg0LCAtMC4wMDIwMywgLTAuNTI4NjVdWzAuNTg0OTUsIDEuNTM2MDAs
IDBdWy0wLjE4MDIyOCwgMi43NzA1NywgMC4xMDU5NTZdWzAuOTA1NTksIDAuMDAwMDAsIC0w
LjQyNDE2XVswLjgwMzExLCAxLjUyMDQ4LCAwXVstMC4yMTY1MDYsIDIuNzgzNTcsIC0xLjYw
MTU5XVswLjkwNTU5LCAwLjAwMDAwLCAtMC40MjQxNl1bMC41ODQ5NSwgMS41MTgxOSwgMF1b
LTAuMjE2NTA2LCAyLjc4MzU3LCAtMS42MDE1OV1bMC4wMDAwMCwgMC4wMDAwMCwgLTEuMDAw
MDBdWzAuNTg0OTUsIDEuNTE4MTksIDBdWzAuMDQyMTc5NiwgMi43NzAxLCAwLjE3MDU1OF1b
MC4wMDAwMCwgLTAuMzU2MzMsIC0wLjkzNDM2XVswLjgwOTAyLCAxLjQ5NzQ0LCAwXVswLjIy
NTM2NCwgMi43ODM2OSwgLTEuNjEwOThdWzAuMDAwMDAsIDAuMDAwMDAsIC0xLjAwMDAwXVsw
LjU4NDk1LCAxLjQ4NzA4LCAwXVstMC40NjM5NywgMi40MDE5LCAtMi41NDE4N11bMC44ODc2
NywgLTAuMDcyOTgsIC0wLjQ1NDY3XVswLjQ1NTQzLCAxLjU1NDIzLCAwXVstMC41MjM4MjEs
IDIuNDIzMzYsIC01LjM1ODk0XVswLjk0MTUyLCAwLjIyNjI1LCAtMC4yNDk3MV1bMC4wNTY4
NSwgMS41NTQyMywgMF1bLTAuNTIzNzY4LCAxLjkzNzI3LCAtNS4zNjI2NF1bMC45ODM2OSwg
MC4xNzk4NSwgLTAuMDAwMDBdWzAuMDU2ODUsIDEuNjA0MjUsIDBdWy0wLjQ2MzE5NCwgMi41
MjcwNSwgLTUuMjg0MjVdWzAuOTA4NzcsIDAuMDI3MTUsIC0wLjQxNjQyXVswLjA2NzI5LCAx
LjUzNzc1LCAwXVstMC4yOTYwNDUsIDIuODEyMDksIC01LjM0NTNdWzAuODY4MzIsIDAuMDI3
MDMsIC0wLjQ5NTI2XVswLjA1OTAxLCAxLjUwOTY1LCAwXVstMC40ODAzNDYsIDIuNDg3OTIs
IC01LjQzMzA4XVswLjk0NjkwLCAwLjA3NTQ3LCAtMC4zMTI1NF1bMC4wNDY2MSwgMS41NDA3
NCwgMF1bMC4wNTY1MDgsIDIuNzExMzksIC01Ljc0MDE3XVswLjAwMDAwLCAxLjAwMDAwLCAw
LjAwMDAwXVswLjY5NDg2LCAxLjA3NTI4LCAwXVstMC4zMDQyNTUsIDIuODE1MDMsIC01Ljcz
MTcyXVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjcxMTU0LCAxLjAxOTQ4LCAwXVsw
LjEzNzYxNiwgMi44MTUxNSwgLTUuNzQxMV1bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1b
MC43MTE1NCwgMS4wODc4MiwgMF1bLTAuMjIzMTI0LCAyLjcxMTMyLCAtNS43MzQyM11bMC4w
MDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC42OTQ4NiwgMS4wMzIwMywgMF1bLTAuNDg2NjYx
LCAyLjQ5MDE5LCAtNS43MzAzMV1bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC42NTkz
MSwgMC45OTEyNiwgMF1bLTAuMzA0MjU1LCAyLjgxNTAzLCAtNS43MzE3Ml1bMC4wMDAwMCwg
MS4wMDAwMCwgMC4wMDAwMF1bMC43MTE1NCwgMS4wMTk0OCwgMF1bLTAuMzYxODAzLCAyLjQ3
MDk5LCAtNS43MzMxMV1bLTAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNjU2MjEsIDEu
MDEwNTcsIDBdWy0wLjQ4NjYsIDEuOTQwMTEsIC01LjczNDUxXVstMC4wMDAwMCwgMS4wMDAw
MCwgMC4wMDAwMF1bMC41NzA4NCwgMC45OTEyNiwgMF1bLTAuNDg2NjYxLCAyLjQ5MDE5LCAt
NS43MzAzMV1bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC42NTkzMSwgMC45OTEyNiwg
MF1bLTAuMjgzNTIzLCAyLjQ2NjQ3LCAtMi42MTUyOF1bLTAuMDAzOTksIC0wLjI1Nzc3LCAt
MC45NjYyMF1bMC40NDU3MCwgMS41MzE1OCwgMF1bLTAuNDIwNDE3LCAyLjQ2NjQzLCAtMi42
MTIzOF1bMC4zNDM2MiwgLTAuMjY1MzgsIC0wLjkwMDgzXVswLjQ0NTcwLCAxLjU0MDc0LCAw
XVstMC40MTg5MjUsIDIuNDI1NjIsIC0yLjU0MjY0XVswLjIzODI0LCAtMC4yNTY2OSwgLTAu
OTM2NjddWzAuNDU1NDMsIDEuNTQzMTcsIDBdWy0wLjI4NzA5OSwgMi40MjU2NiwgLTIuNTQ1
NDRdWzAuMDAwMDAsIC0wLjE3MTMwLCAtMC45ODUyMl1bMC40NTU0MywgMS41MzQzMCwgMF1b
LTAuMzk4OTA4LCAyLjQxODQ0LCAtMS42MDA1XVswLjE1OTMzLCAtMC4wMDAwMCwgLTAuOTg3
MjNdWzAuNTg0OTUsIDEuNTQzMTcsIDBdWy0wLjI2NzA4MiwgMi40MTg0OCwgLTEuNjAzM11b
MC4wMDAwMCwgMC4wMDAwMCwgLTEuMDAwMDBdWzAuNTg0OTUsIDEuNTM0MzAsIDBdWy0wLjI2
NzA4MiwgMi40MTg0OCwgLTEuNjAzM11bMC4wMDAwMCwgMS4wMDAwMCwgLTAuMDAwMDBdWzAu
MzM4OTMsIDEuNDczNjIsIDBdWzAuMjI1MzY0LCAyLjc4MzY5LCAtMS42MTA5OF1bLTAuMDAw
MDAsIDEuMDAwMDAsIC0wLjAwMDAwXVswLjI2OTc4LCAxLjUyMTk1LCAwXVswLjI3NjAyLCAy
LjQxODYzLCAtMS42MTQ4NF1bLTAuMDAwMDAsIDEuMDAwMDAsIC0wLjAwMDAwXVswLjI2MjY4
LCAxLjQ3MzYyLCAwXVstMC40NjMxOTQsIDIuNTI3MDUsIC01LjI4NDI1XVswLjA1NTcyLCAt
MC44NTAwMiwgLTAuNTIzODBdWzAuMDY3MjksIDEuNTM3NzUsIDBdWy0wLjQ3NjAxLCAyLjQ4
NjM3LCAtNS4yMjkwMl1bLTAuMDA5NzIsIC0wLjIwNTczLCAtMC45Nzg1Nl1bMC4wNzQ5Nywg
MS41NDA3NCwgMF1bLTAuMzQyNTgzLCAyLjQ4NDM0LCAtNS4yMzE4N11bMC4wNjc2NSwgLTAu
NTI1OTUsIC0wLjg0NzgyXVswLjA3NDk3LCAxLjUzMTk2LCAwXVstMC4zMjczNzQsIDEuOTQw
MTUsIC01LjczNzg5XVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjU3MDg0LCAxLjAx
NTg5LCAwXVstMC40ODY2LCAxLjk0MDExLCAtNS43MzQ1MV1bLTAuMDAwMDAsIDEuMDAwMDAs
IDAuMDAwMDBdWzAuNTcwODQsIDAuOTkxMjYsIDBdWy0wLjIyMzA3MSwgMi4yMzA3NCwgLTUu
NzM3ODldWy0wLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjYxNzU3LCAxLjAzMjAzLCAw
XVstMC40ODAyODUsIDEuOTM3ODQsIC01LjQzNzI3XVstMC4wMDAwMCwgLTAuMDAwMDAsIDEu
MDAwMDBdWzAuMDI2ODgsIDEuNzcwNzIsIDBdWy0wLjMxODEwMSwgMS45MzY4MywgLTUuMzAx
NF1bLTAuMDAwMDEsIC0wLjAwMDAwLCAxLjAwMDAwXVswLjAzOTY1LCAxLjc4Nzc1LCAwXVst
MC4zODc1MjUsIDEuOTM2NzksIC01LjI5Nzc2XVstMC4wMDAwMCwgLTAuMDAwMDAsIDEuMDAw
MDBdWzAuMDM5ODUsIDEuNzgwMzIsIDBdWy0wLjIwNTkwNiwgMS42Mzc5LCAtNS43NDI3N11b
MC44NjYwMywgLTAuMDAwMDAsIDAuNTAwMDBdWzAuMDAwMzAsIDEuMTcwNzksIDBdWy0wLjE5
NjYzMiwgMS42MzQ1OCwgLTUuMzA2MjldWzAuODY2MDMsIC0wLjAwMDAwLCAwLjUwMDAwXVsw
LjA3Mjk4LCAxLjE3MDc5LCAwXVstMC4zMTgyNiwgMS44NDUyMSwgLTUuMzAyMV1bMC45NjYx
NiwgLTAuMDAwMDAsIDAuMjU3OTNdWzAuMDcyOTgsIDEuMTUyNzAsIDBdWzAuMDM5NTI1Mywg
MS42Mzc5NywgLTUuNzQ3OTldWy0wLjAwMDAwLCAwLjAwMDAwLCAxLjAwMDAwXVswLjAwMDMw
LCAxLjIwNzMwLCAwXVswLjA0ODc5ODgsIDEuNjM0NjQsIC01LjMxMTVdWy0wLjAwMDAwLCAw
LjAwMDAwLCAxLjAwMDAwXVswLjA3Mjk4LCAxLjIwNzMwLCAwXVstMC4xOTY2MzIsIDEuNjM0
NTgsIC01LjMwNjI5XVstMC4wMDAwMCwgMC4wMDAwMCwgMS4wMDAwMF1bMC4wNzI5OCwgMS4x
NzA3OSwgMF1bLTAuMzI3Mzc0LCAxLjk0MDE1LCAtNS43Mzc4OV1bMS4wMDAwMCwgLTAuMDAw
MDAsIC0wLjAwMTg1XVswLjAwMDMwLCAxLjE1MjczLCAwXVstMC4zMjc1MzMsIDEuODQ4NTQs
IC01LjczODU4XVswLjk2NjE2LCAtMC4wMDAwMCwgMC4yNTc5M11bMC4wMDAzMCwgMS4xNTI3
MCwgMF1bLTAuMzE4MjYsIDEuODQ1MjEsIC01LjMwMjFdWzAuOTY2MTYsIC0wLjAwMDAwLCAw
LjI1NzkzXVswLjA3Mjk4LCAxLjE1MjcwLCAwXVstMC4zMTgyNiwgMS44NDUyMSwgLTUuMzAy
MV1bMC45NjYxNiwgLTAuMDAwMDAsIDAuMjU3OTNdWzAuMDcyOTgsIDEuMTUyNzAsIDBdWy0w
LjMxODEwMSwgMS45MzY4MywgLTUuMzAxNF1bMS4wMDAwMCwgLTAuMDAwMDAsIC0wLjAwMTg1
XVswLjA3Mjk4LCAxLjE1MjczLCAwXVstMC4zMjczNzQsIDEuOTQwMTUsIC01LjczNzg5XVsx
LjAwMDAwLCAtMC4wMDAwMCwgLTAuMDAxODVdWzAuMDAwMzAsIDEuMTUyNzMsIDBdWy0wLjMx
ODEwMSwgMS45MzY4MywgLTUuMzAxNF1bLTAuMDAwMDEsIC0wLjAwMDAwLCAxLjAwMDAwXVsw
LjAzOTY1LCAxLjc4Nzc1LCAwXVstMC40ODAyODUsIDEuOTM3ODQsIC01LjQzNzI3XVstMC4w
MDAwMCwgLTAuMDAwMDAsIDEuMDAwMDBdWzAuMDI2ODgsIDEuNzcwNzIsIDBdWy0wLjMyNzM3
NCwgMS45NDAxNSwgLTUuNzM3ODldWy0wLjAwMDAwLCAwLjAwMDAwLCAxLjAwMDAwXVstMC4w
MDAzNywgMS43ODc3NSwgMF1bLTAuMzI3NTMzLCAxLjg0ODU0LCAtNS43Mzg1OF1bMC45NjYx
NiwgLTAuMDAwMDAsIDAuMjU3OTNdWzAuMDAwMzAsIDEuMTUyNzAsIDBdWy0wLjIwNTkwNiwg
MS42Mzc5LCAtNS43NDI3N11bMC44NjYwMywgLTAuMDAwMDAsIDAuNTAwMDBdWzAuMDAwMzAs
IDEuMTcwNzksIDBdWy0wLjMxODI2LCAxLjg0NTIxLCAtNS4zMDIxXVswLjk2NjE2LCAtMC4w
MDAwMCwgMC4yNTc5M11bMC4wNzI5OCwgMS4xNTI3MCwgMF1bLTAuMjY3MDgyLCAyLjQxODQ4
LCAtMS42MDMzXVswLjAwMDAwLCAtMC4wMDQyMSwgLTAuOTk5OTldWzAuNTc1OTIsIDEuNTI4
NTcsIDBdWzAuMjc2MDIsIDIuNDE4NjMsIC0xLjYxNDg0XVstMC4wMDAwMCwgLTAuMDA0MjEs
IC0wLjk5OTk5XVswLjU3NTkyLCAxLjQ4MDgyLCAwXVswLjI2MTE0MywgMi40MzI3NSwgLTIu
ODA5MjldWzAuMDAwMDAsIC0wLjAwNDIxLCAtMC45OTk5OV1bMC40Mzg4OSwgMS40ODA0MCwg
MF1bLTAuMzkzODA0LCAxLjg5MDY3LCAwLjc1NDUwN11bMC45OTk4NCwgLTAuMDAzNTYsIC0w
LjAxNzI4XVswLjkwMTU3LCAxLjYwNDI1LCAwXVstMC40NjM5NywgMi40MDE5LCAtMi41NDE4
N11bMC44ODc2NywgLTAuMDcyOTgsIC0wLjQ1NDY3XVswLjQ1NTQzLCAxLjU1NDIzLCAwXVst
MC41MjM3NjgsIDEuOTM3MjcsIC01LjM2MjY0XVswLjk4MzY5LCAwLjE3OTg1LCAtMC4wMDAw
MF1bMC4wNTY4NSwgMS42MDQyNSwgMF1bLTAuMzkzODA0LCAxLjg5MDY3LCAwLjc1NDUwN11b
LTAuMDAwMDAsIC0wLjAwMDAwLCAxLjAwMDAwXVswLjU5NDQyLCAxLjc2NTkwLCAwXVstMC40
ODAyODUsIDEuOTM3ODQsIC01LjQzNzI3XVstMC4wMDAwMCwgLTAuMDAwMDAsIDEuMDAwMDBd
WzAuMDI2ODgsIDEuNzcwNzIsIDBdWy0wLjM4NzUyNSwgMS45MzY3OSwgLTUuMjk3NzZdWy0w
LjAwMDAwLCAtMC4wMDAwMCwgMS4wMDAwMF1bMC4wMzk4NSwgMS43ODAzMiwgMF1bLTAuNDg2
NjYxLCAyLjQ5MDE5LCAtNS43MzAzMV1bMC45Njc0MywgLTAuMDAwMDAsIC0wLjI1MzE1XVsw
LjAwNTMwLCAxLjU0MDc0LCAwXVstMC40ODY2LCAxLjk0MDExLCAtNS43MzQ1MV1bMS4wMDAw
MCwgLTAuMDAwMDAsIDAuMDAwMDBdWzAuMDA1MzAsIDEuNjA2MDQsIDBdWy0wLjQ4MDM0Niwg
Mi40ODc5MiwgLTUuNDMzMDhdWzAuOTQ2OTAsIDAuMDc1NDcsIC0wLjMxMjU0XVswLjA0NjYx
LCAxLjU0MDc0LCAwXVstMC40ODAzNDYsIDIuNDg3OTIsIC01LjQzMzA4XVswLjk0NjkwLCAw
LjA3NTQ3LCAtMC4zMTI1NF1bMC4wNDY2MSwgMS41NDA3NCwgMF1bLTAuMzA0MjU1LCAyLjgx
NTAzLCAtNS43MzE3Ml1bMC44NzE4MywgLTAuMDAwMDAsIC0wLjQ4OTgxXVswLjAwNTMwLCAx
LjUwOTY1LCAwXVstMC40ODY2NjEsIDIuNDkwMTksIC01LjczMDMxXVswLjk2NzQzLCAtMC4w
MDAwMCwgLTAuMjUzMTVdWzAuMDA1MzAsIDEuNTQwNzQsIDBdWy0wLjQ2Mzk3LCAyLjQwMTks
IC0yLjU0MTg3XVswLjg4NzY3LCAtMC4wNzI5OCwgLTAuNDU0NjddWzAuNDU1NDMsIDEuNTU0
MjMsIDBdWy0wLjQyMDQxNywgMi40NjY0MywgLTIuNjEyMzhdWzAuMzQzNjIsIC0wLjI2NTM4
LCAtMC45MDA4M11bMC40NDU3MCwgMS41NDA3NCwgMF1bLTAuNDc2MDEsIDIuNDg2MzcsIC01
LjIyOTAyXVswLjg1NTU3LCAtMC4wMDAwMCwgLTAuNTE3NjldWzAuMDc0OTcsIDEuNTQwNzQs
IDBdWy0wLjQ3NjAxLCAyLjQ4NjM3LCAtNS4yMjkwMl1bMC44NTU1NywgLTAuMDAwMDAsIC0w
LjUxNzY5XVswLjA3NDk3LCAxLjU0MDc0LCAwXVstMC41MjM4MjEsIDIuNDIzMzYsIC01LjM1
ODk0XVswLjk0MTUyLCAwLjIyNjI1LCAtMC4yNDk3MV1bMC4wNTY4NSwgMS41NTQyMywgMF1b
LTAuNDYzOTcsIDIuNDAxOSwgLTIuNTQxODddWzAuODg3NjcsIC0wLjA3Mjk4LCAtMC40NTQ2
N11bMC40NTU0MywgMS41NTQyMywgMF1bLTAuNDYzOTcsIDIuNDAxOSwgLTIuNTQxODddWzAu
ODg3NjcsIC0wLjA3Mjk4LCAtMC40NTQ2N11bMC40NTU0MywgMS41NTQyMywgMF1bLTAuNDE4
OTI1LCAyLjQyNTYyLCAtMi41NDI2NF1bMC4yMzgyNCwgLTAuMjU2NjksIC0wLjkzNjY3XVsw
LjQ1NTQzLCAxLjU0MzE3LCAwXVstMC40MjA0MTcsIDIuNDY2NDMsIC0yLjYxMjM4XVswLjM0
MzYyLCAtMC4yNjUzOCwgLTAuOTAwODNdWzAuNDQ1NzAsIDEuNTQwNzQsIDBdWy0wLjM3NjYy
NywgMi4zNzgwMywgMC41MDg1NDldWzAuODkxMTQsIC0wLjAwNjUzLCAtMC40NTM2OF1bMC44
NjY5NCwgMS41NTI5NywgMF1bLTAuMzA4MjUyLCAyLjQ3ODc4LCAwLjQ1MTk0OV1bMC44NjY2
OSwgLTAuMDAwMDAsIC0wLjQ5ODg1XVswLjg1NTY3LCAxLjUzNDk3LCAwXVstMC4zNTE4Njcs
IDIuNDk0NDIsIC0xLjYwMDkyXVswLjg0ODg0LCAtMC4wMDIwMywgLTAuNTI4NjVdWzAuNTg0
OTUsIDEuNTM2MDAsIDBdWy0wLjM1MTg2NywgMi40OTQ0MiwgLTEuNjAwOTJdWzAuODQ4ODQs
IC0wLjAwMjAzLCAtMC41Mjg2NV1bMC41ODQ5NSwgMS41MzYwMCwgMF1bLTAuNDQzOTUzLCAy
LjM5NDczLCAtMS41OTk3Ml1bMC45NjYwNiwgLTAuMDA2NjIsIC0wLjI1ODI0XVswLjU4NDk1
LCAxLjU1NDIzLCAwXVstMC4zNzY2MjcsIDIuMzc4MDMsIDAuNTA4NTQ5XVswLjg5MTE0LCAt
MC4wMDY1MywgLTAuNDUzNjhdWzAuODY2OTQsIDEuNTUyOTcsIDBdWy0wLjUyMzgyMSwgMi40
MjMzNiwgLTUuMzU4OTRdWzAuOTQxNTIsIDAuMjI2MjUsIC0wLjI0OTcxXVswLjA1Njg1LCAx
LjU1NDIzLCAwXVstMC40NzYwMSwgMi40ODYzNywgLTUuMjI5MDJdWzAuODU1NTcsIC0wLjAw
MDAwLCAtMC41MTc2OV1bMC4wNzQ5NywgMS41NDA3NCwgMF1bLTAuNDgwMzQ2LCAyLjQ4Nzky
LCAtNS40MzMwOF1bMC45NDY5MCwgMC4wNzU0NywgLTAuMzEyNTRdWzAuMDQ2NjEsIDEuNTQw
NzQsIDBdWy0wLjUyMzgyMSwgMi40MjMzNiwgLTUuMzU4OTRdWzAuOTQxNTIsIDAuMjI2MjUs
IC0wLjI0OTcxXVswLjA1Njg1LCAxLjU1NDIzLCAwXVstMC40ODAzNDYsIDIuNDg3OTIsIC01
LjQzMzA4XVswLjk0NjkwLCAwLjA3NTQ3LCAtMC4zMTI1NF1bMC4wNDY2MSwgMS41NDA3NCwg
MF1bLTAuNDgwMjg1LCAxLjkzNzg0LCAtNS40MzcyN11bMC45MzMwNywgMC4zNTk3MCwgMC4w
MDAwMF1bMC4wNDY2MSwgMS42MDYwNCwgMF1bLTAuNDgwMjg1LCAxLjkzNzg0LCAtNS40Mzcy
N11bMC45MzMwNywgMC4zNTk3MCwgMC4wMDAwMF1bMC4wNDY2MSwgMS42MDYwNCwgMF1bLTAu
NTIzNzY4LCAxLjkzNzI3LCAtNS4zNjI2NF1bMC45ODM2OSwgMC4xNzk4NSwgLTAuMDAwMDBd
WzAuMDU2ODUsIDEuNjA0MjUsIDBdWy0wLjUyMzgyMSwgMi40MjMzNiwgLTUuMzU4OTRdWzAu
OTQxNTIsIDAuMjI2MjUsIC0wLjI0OTcxXVswLjA1Njg1LCAxLjU1NDIzLCAwXVstMC40NDM5
NTMsIDIuMzk0NzMsIC0xLjU5OTcyXVswLjQ2NTYwLCAwLjAwMDAwLCAtMC44ODQ5OV1bMC41
ODQ5NSwgMS41NTQyMywgMF1bLTAuMzk4OTA4LCAyLjQxODQ0LCAtMS42MDA1XVswLjE1OTMz
LCAtMC4wMDAwMCwgLTAuOTg3MjNdWzAuNTg0OTUsIDEuNTQzMTcsIDBdWy0wLjQxODkyNSwg
Mi40MjU2MiwgLTIuNTQyNjRdWzAuMjM4MjQsIC0wLjI1NjY5LCAtMC45MzY2N11bMC40NTU0
MywgMS41NDMxNywgMF1bLTAuNDE4OTI1LCAyLjQyNTYyLCAtMi41NDI2NF1bMC4yMzgyNCwg
LTAuMjU2NjksIC0wLjkzNjY3XVswLjQ1NTQzLCAxLjU0MzE3LCAwXVstMC40NjM5NywgMi40
MDE5LCAtMi41NDE4N11bMC44ODc2NywgLTAuMDcyOTgsIC0wLjQ1NDY3XVswLjQ1NTQzLCAx
LjU1NDIzLCAwXVstMC40NDM5NTMsIDIuMzk0NzMsIC0xLjU5OTcyXVswLjQ2NTYwLCAwLjAw
MDAwLCAtMC44ODQ5OV1bMC41ODQ5NSwgMS41NTQyMywgMF1bLTAuNDQzOTUzLCAyLjM5NDcz
LCAtMS41OTk3Ml1bMC4wMDAwMSwgMS4wMDAwMCwgLTAuMDAwMDFdWzAuNTg0OTUsIDEuNTU0
MjMsIDBdWy0wLjM1MTg2NywgMi40OTQ0MiwgLTEuNjAwOTJdWzAuMDAwMDEsIDEuMDAwMDAs
IC0wLjAwMDAxXVswLjU4NDk1LCAxLjUzNjAwLCAwXVstMC4zOTg5MDgsIDIuNDE4NDQsIC0x
LjYwMDVdWzAuMDAwMDEsIDEuMDAwMDAsIC0wLjAwMDAxXVswLjU4NDk1LCAxLjU0MzE3LCAw
XVstMC41MjM3NjgsIDEuOTM3MjcsIC01LjM2MjY0XVstMC4wMDAwMCwgLTAuMDAwMDAsIDEu
MDAwMDBdWzAuMDMzNjMsIDEuNzY1OTAsIDBdWy0wLjQ4MDI4NSwgMS45Mzc4NCwgLTUuNDM3
MjddWy0wLjAwMDAwLCAtMC4wMDAwMCwgMS4wMDAwMF1bMC4wMjY4OCwgMS43NzA3MiwgMF1b
LTAuMzkzODA0LCAxLjg5MDY3LCAwLjc1NDUwN11bLTAuMDAwMDAsIC0wLjAwMDAwLCAxLjAw
MDAwXVswLjU5NDQyLCAxLjc2NTkwLCAwXVswLjA0MjE3OTYsIDIuNzcwMSwgMC4xNzA1NThd
WzAuMDAwMDAsIC0wLjM1NjMzLCAtMC45MzQzNl1bMC44MDkwMiwgMS40OTc0NCwgMF1bLTAu
MjE2NTA2LCAyLjc4MzU3LCAtMS42MDE1OV1bMC4wMDAwMCwgMC4wMDAwMCwgLTEuMDAwMDBd
WzAuNTg0OTUsIDEuNTE4MTksIDBdWy0wLjE4MDIyOCwgMi43NzA1NywgMC4xMDU5NTZdWzAu
MDk3NDMsIC0wLjMxMDYyLCAtMC45NDU1M11bMC44MDMxMSwgMS41MjA0OCwgMF1bMC4wNTAx
MjI1LCAyLjQ5MDUxLCAwLjU0MDg3Nl1bMC4wMDAwMCwgLTAuODA1NTIsIC0wLjU5MjU2XVsw
Ljg2MTc3LCAxLjQ5NzM4LCAwXVstMC4zOTM4MDQsIDEuODkwNjcsIDAuNzU0NTA3XVswLjE5
NjIxLCAtMC44NzA3MiwgLTAuNDUwOTVdWzAuOTAxNTcsIDEuNjA0MjUsIDBdWzAuMDU2Njg4
MiwgMS44OTAwNSwgMC44NDIyNTldWy0wLjAwMDAwLCAtMC44OTAyNSwgLTAuNDU1NDZdWzAu
OTAyMjIsIDEuNDk2ODMsIDBdWzAuMDUwMTIyNSwgMi40OTA1MSwgMC41NDA4NzZdWzAuMDAw
MDAsIC0wLjgwNTUyLCAtMC41OTI1Nl1bMC44NjE3NywgMS40OTczOCwgMF1bLTAuMzA4MjUy
LCAyLjQ3ODc4LCAwLjQ1MTk0OV1bMC4yMDE3MCwgLTAuNjU0NTUsIC0wLjcyODYyXVswLjg1
NTY3LCAxLjUzNDk3LCAwXVstMC4zNzY2MjcsIDIuMzc4MDMsIDAuNTA4NTQ5XVswLjIxNzA0
LCAtMC44MjMzMiwgLTAuNTI0NDRdWzAuODY2OTQsIDEuNTUyOTcsIDBdWzAuMDQyMTc5Niwg
Mi43NzAxLCAwLjE3MDU1OF1bMC4wMDAwMCwgLTAuMzU2MzMsIC0wLjkzNDM2XVswLjgwOTAy
LCAxLjQ5NzQ0LCAwXVstMC4xODAyMjgsIDIuNzcwNTcsIDAuMTA1OTU2XVswLjA5NzQzLCAt
MC4zMTA2MiwgLTAuOTQ1NTNdWzAuODAzMTEsIDEuNTIwNDgsIDBdWy0wLjMwODI1MiwgMi40
Nzg3OCwgMC40NTE5NDldWzAuMjAxNzAsIC0wLjY1NDU1LCAtMC43Mjg2Ml1bMC44NTU2Nywg
MS41MzQ5NywgMF1bMC4wNTY2ODgyLCAxLjg5MDA1LCAwLjg0MjI1OV1bLTAuMDAwMDAsIDAu
MDAwMDAsIDEuMDAwMDBdWzAuNjAzMzMsIDEuODEzODcsIDBdWy0wLjM5MzgwNCwgMS44OTA2
NywgMC43NTQ1MDddWy0wLjAwMDAwLCAtMC4wMDAwMCwgMS4wMDAwMF1bMC41OTQ0MiwgMS43
NjU5MCwgMF1bLTAuMzg3NTI1LCAxLjkzNjc5LCAtNS4yOTc3Nl1bLTAuMDAwMDAsIC0wLjAw
MDAwLCAxLjAwMDAwXVswLjAzOTg1LCAxLjc4MDMyLCAwXVswLjA1NjUwOCwgMi43MTEzOSwg
LTUuNzQwMTddWzAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNjk0ODYsIDEuMDc1Mjgs
IDBdWy0wLjIyMzEyNCwgMi43MTEzMiwgLTUuNzM0MjNdWzAuMDAwMDAsIDEuMDAwMDAsIDAu
MDAwMDBdWzAuNjk0ODYsIDEuMDMyMDMsIDBdWy0wLjMwNDI1NSwgMi44MTUwMywgLTUuNzMx
NzJdWzAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNzExNTQsIDEuMDE5NDgsIDBdWzAu
MjI1MzY0LCAyLjc4MzY5LCAtMS42MTA5OF1bLTAuMDAwMDAsIDEuMDAwMDAsIC0wLjAwMDAw
XVswLjI2OTc4LCAxLjUyMTk1LCAwXVstMC4yNjcwODIsIDIuNDE4NDgsIC0xLjYwMzNdWzAu
MDAwMDAsIDEuMDAwMDAsIC0wLjAwMDAwXVswLjMzODkzLCAxLjQ3MzYyLCAwXVstMC4yMTY1
MDYsIDIuNzgzNTcsIC0xLjYwMTU5XVswLjAwMDAwLCAxLjAwMDAwLCAtMC4wMDAwMF1bMC4z
MzE4MywgMS41MjE5NSwgMF1bMC4xNDU4MjUsIDIuODEyMjEsIC01LjM1NDY5XVswLjAxMzc0
LCAtMC45ODY4MiwgLTAuMTYxMjRdWzAuMDU5MDEsIDEuNDgyNzEsIDBdWy0wLjIxNTA1MSwg
Mi43MDY1LCAtNS4zMzE3MV1bMC4wNDM0NCwgLTAuOTY3MjQsIC0wLjI1MDEzXVswLjA2MTI1
LCAxLjUwNjMyLCAwXVswLjA2NTUzOTUsIDIuNzA2NTgsIC01LjMzNzY3XVstMC4wNTgxMSwg
LTAuOTU3MzAsIC0wLjI4MzE5XVswLjA2MTI1LCAxLjQ4NjAwLCAwXVswLjE0NTgyNSwgMi44
MTIyMSwgLTUuMzU0NjldWzAuMDEzNzQsIC0wLjk4NjgyLCAtMC4xNjEyNF1bMC4wNTkwMSwg
MS40ODI3MSwgMF1bLTAuMjk2MDQ1LCAyLjgxMjA5LCAtNS4zNDUzXVstMC4wMjA2MSwgLTAu
OTg1ODUsIC0wLjE2NjM0XVswLjA1OTAxLCAxLjUwOTY1LCAwXVstMC4yMTUwNTEsIDIuNzA2
NSwgLTUuMzMxNzFdWzAuMDQzNDQsIC0wLjk2NzI0LCAtMC4yNTAxM11bMC4wNjEyNSwgMS41
MDYzMiwgMF1bMC4xMzc2MTYsIDIuODE1MTUsIC01Ljc0MTFdWzAuMDAwMDAsIDAuMDAwMDAs
IC0xLjAwMDAwXVswLjAwNTMwLCAxLjQ4MjcxLCAwXVstMC4yOTYwNDUsIDIuODEyMDksIC01
LjM0NTNdWzAuMDAwMDAsIDAuMDAwMDAsIC0xLjAwMDAwXVswLjA1OTAxLCAxLjUwOTY1LCAw
XVswLjE0NTgyNSwgMi44MTIyMSwgLTUuMzU0NjldWzAuMDAwMDAsIDAuMDAwMDAsIC0xLjAw
MDAwXVswLjA1OTAxLCAxLjQ4MjcxLCAwXVswLjEzNzYxNiwgMi44MTUxNSwgLTUuNzQxMV1b
MC4wMDAwMCwgMC4wMDAwMCwgLTEuMDAwMDBdWzAuMDA1MzAsIDEuNDgyNzEsIDBdWy0wLjMw
NDI1NSwgMi44MTUwMywgLTUuNzMxNzJdWzAuMDAwMDAsIDAuMDAwMDAsIC0xLjAwMDAwXVsw
LjAwNTMwLCAxLjUwOTY1LCAwXVstMC4yOTYwNDUsIDIuODEyMDksIC01LjM0NTNdWzAuMDAw
MDAsIDAuMDAwMDAsIC0xLjAwMDAwXVswLjA1OTAxLCAxLjUwOTY1LCAwXVswLjAzOTUyNTMs
IDEuNjM3OTcsIC01Ljc0Nzk5XVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjUyMjIy
LCAxLjA3MjYzLCAwXVstMC4yMjMwNzEsIDIuMjMwNzQsIC01LjczNzg5XVstMC4wMDAwMCwg
MS4wMDAwMCwgMC4wMDAwMF1bMC42MTc1NywgMS4wMzIwMywgMF1bMC4wNTY1NjA4LCAyLjIz
MDgxLCAtNS43NDM4M11bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC42MTc1NywgMS4w
NzUyOCwgMF1bLTAuMjIzMDcxLCAyLjIzMDc0LCAtNS43Mzc4OV1bLTAuMDAwMDAsIDEuMDAw
MDAsIDAuMDAwMDBdWzAuNjE3NTcsIDEuMDMyMDMsIDBdWy0wLjIwNTkwNiwgMS42Mzc5LCAt
NS43NDI3N11bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC41MjIyMiwgMS4wMzQ2Nywg
MF1bLTAuMzI3Mzc0LCAxLjk0MDE1LCAtNS43Mzc4OV1bMC4wMDAwMCwgMS4wMDAwMCwgMC4w
MDAwMF1bMC41NzA4NCwgMS4wMTU4OSwgMF1bLTAuMzI3Mzc0LCAxLjk0MDE1LCAtNS43Mzc4
OV1bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC41NzA4NCwgMS4wMTU4OSwgMF1bLTAu
MjA1OTA2LCAxLjYzNzksIC01Ljc0Mjc3XVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVsw
LjUyMjIyLCAxLjAzNDY3LCAwXVstMC4zMjc1MzMsIDEuODQ4NTQsIC01LjczODU4XVswLjAw
MDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjU1NjEwLCAxLjAxNTg2LCAwXVswLjAzOTUyNTMs
IDEuNjM3OTcsIC01Ljc0Nzk5XVstMC4wMDAwMCwgMC4wMDAwMCwgMS4wMDAwMF1bMC4wMDAz
MCwgMS4yMDczMCwgMF1bLTAuMTk2NjMyLCAxLjYzNDU4LCAtNS4zMDYyOV1bLTAuMDAwMDAs
IDAuMDAwMDAsIDEuMDAwMDBdWzAuMDcyOTgsIDEuMTcwNzksIDBdWy0wLjIwNTkwNiwgMS42
Mzc5LCAtNS43NDI3N11bLTAuMDAwMDAsIDAuMDAwMDAsIDEuMDAwMDBdWzAuMDAwMzAsIDEu
MTcwNzksIDBdWy0wLjIwNTkwNiwgMS42Mzc5LCAtNS43NDI3N11bMC4wMDAwMCwgMS4wMDAw
MCwgMC4wMDAwMF1bMC41MjIyMiwgMS4wMzQ2NywgMF1bLTAuMjIzMDcxLCAyLjIzMDc0LCAt
NS43Mzc4OV1bLTAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNjE3NTcsIDEuMDMyMDMs
IDBdWzAuMDM5NTI1MywgMS42Mzc5NywgLTUuNzQ3OTldWzAuMDAwMDAsIDEuMDAwMDAsIDAu
MDAwMDBdWzAuNTIyMjIsIDEuMDcyNjMsIDBdWzAuMjYxMTQzLCAyLjQzMjc1LCAtMi44MDky
OV1bMC4wMDAwMCwgLTAuMDA0MjEsIC0wLjk5OTk5XVswLjQzODg5LCAxLjQ4MDQwLCAwXVst
MC4zMDI5NTMsIDIuNDMyNiwgLTIuNzk3MzFdWzAuMDAwMDAsIC0wLjAwNDIxLCAtMC45OTk5
OV1bMC40Mzg4OSwgMS41Mjg5OSwgMF1bLTAuMjY3MDgyLCAyLjQxODQ4LCAtMS42MDMzXVsw
LjAwMDAwLCAtMC4wMDQyMSwgLTAuOTk5OTldWzAuNTc1OTIsIDEuNTI4NTcsIDBdWzAuMDUw
MTIyNSwgMi40OTA1MSwgMC41NDA4NzZdWzAuMDAwMDAsIC0wLjgwNTUyLCAtMC41OTI1Nl1b
MC44NjE3NywgMS40OTczOCwgMF1bLTAuMzc2NjI3LCAyLjM3ODAzLCAwLjUwODU0OV1bMC4y
MTcwNCwgLTAuODIzMzIsIC0wLjUyNDQ0XVswLjg2Njk0LCAxLjU1Mjk3LCAwXVstMC4zOTM4
MDQsIDEuODkwNjcsIDAuNzU0NTA3XVswLjE5NjIxLCAtMC44NzA3MiwgLTAuNDUwOTVdWzAu
OTAxNTcsIDEuNjA0MjUsIDBdWzAuMDQyMTc5NiwgMi43NzAxLCAwLjE3MDU1OF1bMC4wMDAw
MCwgLTAuMzU2MzMsIC0wLjkzNDM2XVswLjgwOTAyLCAxLjQ5NzQ0LCAwXVstMC4zMDgyNTIs
IDIuNDc4NzgsIDAuNDUxOTQ5XVswLjIwMTcwLCAtMC42NTQ1NSwgLTAuNzI4NjJdWzAuODU1
NjcsIDEuNTM0OTcsIDBdWzAuMDUwMTIyNSwgMi40OTA1MSwgMC41NDA4NzZdWzAuMDAwMDAs
IC0wLjgwNTUyLCAtMC41OTI1Nl1bMC44NjE3NywgMS40OTczOCwgMF1bLTAuMTE1MDczLCAy
Ljk3ODU3LCAtMC4wNTkwNzkyXVsxLjAwMDAwLCAtMC4wMDAwMCwgMC4wMDAwMF1bMC44MDY4
NCwgMS41MTU0NiwgMF1bLTAuMTE3NDQ2LCAyLjk3OTQyLCAtMC4xNzA3NDVdWzEuMDAwMDAs
IC0wLjAwMDAwLCAwLjAwMDAwXVswLjc5MTMyLCAxLjUxNTQ2LCAwXVstMC4xMTkzMiwgMi43
NjY1NiwgLTAuMjYxNjhdWzEuMDAwMDAsIC0wLjAwMDAwLCAwLjAwMDAwXVswLjc3ODkxLCAx
LjUyMDQzLCAwXVstMC4xMTkzMiwgMi43NjY1NiwgLTAuMjYxNjhdWzEuMDAwMDAsIC0wLjAw
MDAwLCAwLjAwMDAwXVswLjc3ODkxLCAxLjUyMDQzLCAwXVstMC4xMTMxNSwgMi43NjQzNSwg
MC4wMjg2OTFdWzEuMDAwMDAsIC0wLjAwMDAwLCAwLjAwMDAwXVswLjgxOTI2LCAxLjUyMDQz
LCAwXVstMC4xMTUwNzMsIDIuOTc4NTcsIC0wLjA1OTA3OTJdWzEuMDAwMDAsIC0wLjAwMDAw
LCAwLjAwMDAwXVswLjgwNjg0LCAxLjUxNTQ2LCAwXVswLjE4OTQyNSwgMi45Nzg2NSwgLTAu
MDY1NTQ3OV1bLTEuMDAwMDAsIDAuMDAwMDAsIC0wLjAwMDAwXVswLjgwNjg0LCAxLjQ4MTc1
LCAwXVswLjE5MTM0NywgMi43NjQ0MywgMC4wMjIyMjIzXVstMS4wMDAwMCwgMC4wMDAwMCwg
LTAuMDAwMDBdWzAuODE5MjYsIDEuNDc2NzEsIDBdWzAuMTg1MTc4LCAyLjc2NjY0LCAtMC4y
NjgxNDhdWy0xLjAwMDAwLCAwLjAwMDAwLCAtMC4wMDAwMF1bMC43Nzg5MSwgMS40NzY3MSwg
MF1bMC4xODUxNzgsIDIuNzY2NjQsIC0wLjI2ODE0OF1bLTEuMDAwMDAsIDAuMDAwMDAsIC0w
LjAwMDAwXVswLjc3ODkxLCAxLjQ3NjcxLCAwXVswLjE4NzA1MiwgMi45Nzk1LCAtMC4xNzcy
MTRdWy0xLjAwMDAwLCAwLjAwMDAwLCAtMC4wMDAwMF1bMC43OTEzMiwgMS40ODE3NSwgMF1b
MC4xODk0MjUsIDIuOTc4NjUsIC0wLjA2NTU0NzldWy0xLjAwMDAwLCAwLjAwMDAwLCAtMC4w
MDAwMF1bMC44MDY4NCwgMS40ODE3NSwgMF1bMC4xODk0MjUsIDIuOTc4NjUsIC0wLjA2NTU0
NzldWzAuMDAwMDAsIC0wLjkyMjQwLCAtMC4zODYyNF1bMC44MDY4NCwgMS40ODE3NSwgMF1b
LTAuMTE1MDczLCAyLjk3ODU3LCAtMC4wNTkwNzkyXVswLjAwMDAwLCAtMC45MjI0MCwgLTAu
Mzg2MjRdWzAuODA2ODQsIDEuNTE1NDYsIDBdWy0wLjExMzE1LCAyLjc2NDM1LCAwLjAyODY5
MV1bMC4wMDAwMCwgLTAuOTIyNDAsIC0wLjM4NjI0XVswLjgxOTI2LCAxLjUyMDQzLCAwXVst
MC4xMTMxNSwgMi43NjQzNSwgMC4wMjg2OTFdWzAuMDAwMDAsIC0wLjkyMjQwLCAtMC4zODYy
NF1bMC44MTkyNiwgMS41MjA0MywgMF1bMC4xOTEzNDcsIDIuNzY0NDMsIDAuMDIyMjIyM11b
MC4wMDAwMCwgLTAuOTIyNDAsIC0wLjM4NjI0XVswLjgxOTI2LCAxLjQ3NjcxLCAwXVswLjE4
OTQyNSwgMi45Nzg2NSwgLTAuMDY1NTQ3OV1bMC4wMDAwMCwgLTAuOTIyNDAsIC0wLjM4NjI0
XVswLjgwNjg0LCAxLjQ4MTc1LCAwXVswLjE4NzA1MiwgMi45Nzk1LCAtMC4xNzcyMTRdWzAu
MDAwMDAsIC0wLjAwMDAwLCAtMS4wMDAwMF1bMC43OTEzMiwgMS40ODE3NSwgMF1bLTAuMTE3
NDQ2LCAyLjk3OTQyLCAtMC4xNzA3NDVdWzAuMDAwMDAsIDAuMDAwMDAsIC0xLjAwMDAwXVsw
Ljc5MTMyLCAxLjUxNTQ2LCAwXVstMC4xMTUwNzMsIDIuOTc4NTcsIC0wLjA1OTA3OTJdWzAu
MDAwMDAsIC0wLjAwMDAwLCAtMS4wMDAwMF1bMC44MDY4NCwgMS41MTU0NiwgMF1bLTAuMTE1
MDczLCAyLjk3ODU3LCAtMC4wNTkwNzkyXVswLjAwMDAwLCAtMC4wMDAwMCwgLTEuMDAwMDBd
WzAuODA2ODQsIDEuNTE1NDYsIDBdWzAuMTg5NDI1LCAyLjk3ODY1LCAtMC4wNjU1NDc5XVsw
LjAwMDAwLCAtMC4wMDAwMCwgLTEuMDAwMDBdWzAuODA2ODQsIDEuNDgxNzUsIDBdWzAuMTg3
MDUyLCAyLjk3OTUsIC0wLjE3NzIxNF1bMC4wMDAwMCwgLTAuMDAwMDAsIC0xLjAwMDAwXVsw
Ljc5MTMyLCAxLjQ4MTc1LCAwXVswLjE4NTE3OCwgMi43NjY2NCwgLTAuMjY4MTQ4XVswLjAw
MDAwLCAwLjkyMjU0LCAtMC4zODU5MV1bMC43Nzg5MSwgMS40NzY3MSwgMF1bLTAuMTE5MzIs
IDIuNzY2NTYsIC0wLjI2MTY4XVswLjAwMDAwLCAwLjkyMjU0LCAtMC4zODU5MV1bMC43Nzg5
MSwgMS41MjA0MywgMF1bLTAuMTE3NDQ2LCAyLjk3OTQyLCAtMC4xNzA3NDVdWzAuMDAwMDAs
IDAuOTIyNTQsIC0wLjM4NTkxXVswLjc5MTMyLCAxLjUxNTQ2LCAwXVstMC4xMTc0NDYsIDIu
OTc5NDIsIC0wLjE3MDc0NV1bMC4wMDAwMCwgMC45MjI1NCwgLTAuMzg1OTFdWzAuNzkxMzIs
IDEuNTE1NDYsIDBdWzAuMTg3MDUyLCAyLjk3OTUsIC0wLjE3NzIxNF1bMC4wMDAwMCwgMC45
MjI1NCwgLTAuMzg1OTFdWzAuNzkxMzIsIDEuNDgxNzUsIDBdWzAuMTg1MTc4LCAyLjc2NjY0
LCAtMC4yNjgxNDhdWzAuMDAwMDAsIDAuOTIyNTQsIC0wLjM4NTkxXVswLjc3ODkxLCAxLjQ3
NjcxLCAwXVstMC4wODMwMjg3LCAyLjgwNjExLCAtNS43MjI4NF1bMC45MjI2NiwgMC4yMjM3
NCwgLTAuMzE0MDZdWzAuMDA4NTEsIDEuNDk2MTcsIDBdWy0wLjE2MzI2MiwgMi44MDUzNywg
LTUuMzU1MTVdWzAuOTIyNjYsIDAuMjIzNzQsIC0wLjMxNDA2XVswLjA1OTM1LCAxLjUwMTcz
LCAwXVstMC4wNzc2MzEsIDIuOTg1ODcsIC01LjQ2NjQ2XVswLjkyMjY2LCAwLjIyMzc0LCAt
MC4zMTQwNl1bMC4wNDM5NSwgMS40OTYxOSwgMF1bLTAuMDc3NjMxLCAyLjk4NTg3LCAtNS40
NjY0Nl1bLTAuOTIyNjYsIDAuMjIzNzQsIC0wLjMxNDA2XVswLjA0Mzk1LCAxLjQ5NjE5LCAw
XVswLjAxMjc0OCwgMi44MDU0MiwgLTUuMzU4ODldWy0wLjkyMjY2LCAwLjIyMzc0LCAtMC4z
MTQwNl1bMC4wNTkzNSwgMS40OTA2MiwgMF1bLTAuMDgzMDI4NywgMi44MDYxMSwgLTUuNzIy
ODRdWy0wLjkyMjY2LCAwLjIyMzc0LCAtMC4zMTQwNl1bMC4wMDg1MSwgMS40OTYxNywgMF1b
LTAuMTYzMjYyLCAyLjgwNTM3LCAtNS4zNTUxNV1bMC4wMDAwMCwgLTAuODUxMDYsIC0wLjUy
NTA3XVswLjA1OTM1LCAxLjUwMTczLCAwXVswLjAxMjc0OCwgMi44MDU0MiwgLTUuMzU4ODld
WzAuMDAwMDAsIC0wLjg1MTA2LCAtMC41MjUwN11bMC4wNTkzNSwgMS40OTA2MiwgMF1bLTAu
MDc3NjMxLCAyLjk4NTg3LCAtNS40NjY0Nl1bMC4wMDAwMCwgLTAuODUxMDYsIC0wLjUyNTA3
XVswLjA0Mzk1LCAxLjQ5NjE5LCAwXVswLjY0MTEwMiwgMi4yNTQ5NiwgMC4yNTc3ODJdWy0w
LjI4MDU0LCAwLjAwMDAwLCAwLjk1OTg0XVswLjg0NzE3LCAxLjQ1Mjc1LCAwXVswLjQ4NTcz
MiwgMi4yMDg1MSwgMC4zMzE5NzhdWy0wLjI4MDU0LCAwLjAwMDAwLCAwLjk1OTg0XVswLjg1
NzA3LCAxLjQ0ODkyLCAwXVswLjQ3MDE5OCwgMi4yMTQwOCwgLTAuMzk5MTg0XVstMC4yODA1
NCwgMC4wMDAwMCwgMC45NTk4NF1bMC43Njg1NiwgMS40NDg5MiwgMF1bMC40NzAxOTgsIDIu
MjE0MDgsIC0wLjM5OTE4NF1bLTAuMjgwNTQsIDAuMDAwMDAsIDAuOTU5ODRdWzAuNzY4NTYs
IDEuNDQ4OTIsIDBdWzAuNjI3MDgxLCAyLjI1OTk5LCAtMC40MDIxNjhdWy0wLjI4MDU0LCAw
LjAwMDAwLCAwLjk1OTg0XVswLjc2ODU2LCAxLjQ1Mjc1LCAwXVswLjY0MTEwMiwgMi4yNTQ5
NiwgMC4yNTc3ODJdWy0wLjI4MDU0LCAwLjAwMDAwLCAwLjk1OTg0XVswLjg0NzE3LCAxLjQ1
Mjc1LCAwXVswLjQ4NTQ0NCwgMi4zMzM4LCAwLjMzMjkzOF1bLTAuNDEzMTEsIC0wLjkxMDY4
LCAtMC4wMDA5MF1bMC44NTcwNywgMS40NTgzNCwgMF1bMC40ODU3MzIsIDIuMjA4NTEsIDAu
MzMxOTc4XVstMC40MTMxMSwgLTAuOTEwNjgsIC0wLjAwMDkwXVswLjg1NzA3LCAxLjQ0ODky
LCAwXVswLjY0MTEwMiwgMi4yNTQ5NiwgMC4yNTc3ODJdWy0wLjQxMzExLCAtMC45MTA2OCwg
LTAuMDAwOTBdWzAuODQ3MTcsIDEuNDUyNzUsIDBdWzAuNjI3MDgxLCAyLjI1OTk5LCAtMC40
MDIxNjhdWy0wLjQ1MDk1LCAwLjAwMDAwLCAtMC44OTI1NV1bMC43Njg1NiwgMS40NTI3NSwg
MF1bMC40Njk5MSwgMi4zMzkzNywgLTAuMzk4MjI0XVstMC40NTA5NSwgMC4wMDAwMCwgLTAu
ODkyNTVdWzAuNzY4NTYsIDEuNDU4MzQsIDBdWzAuNDg1NDQ0LCAyLjMzMzgsIDAuMzMyOTM4
XVstMC40NTA5NSwgMC4wMDAwMCwgLTAuODkyNTVdWzAuODU3MDcsIDEuNDU4MzQsIDBdWzAu
NDg1NDQ0LCAyLjMzMzgsIDAuMzMyOTM4XVstMC40NTA5NSwgMC4wMDAwMCwgLTAuODkyNTVd
WzAuODU3MDcsIDEuNDU4MzQsIDBdWzAuNjQxMTAyLCAyLjI1NDk2LCAwLjI1Nzc4Ml1bLTAu
NDUwOTYsIDAuMDAwMDAsIC0wLjg5MjU1XVswLjg0NzE3LCAxLjQ1Mjc1LCAwXVswLjYyNzA4
MSwgMi4yNTk5OSwgLTAuNDAyMTY4XVstMC40NTA5NSwgMC4wMDAwMCwgLTAuODkyNTVdWzAu
NzY4NTYsIDEuNDUyNzUsIDBdWzAuNDY5OTEsIDIuMzM5MzcsIC0wLjM5ODIyNF1bMC4wMDAw
MCwgMS4wMDAwMCwgMC4wMDAwMF1bMC43Njg1NiwgMS40NTgzNCwgMF1bMC42MjcwODEsIDIu
MjU5OTksIC0wLjQwMjE2OF1bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC43Njg1Niwg
MS40NTI3NSwgMF1bMC40NzAxOTgsIDIuMjE0MDgsIC0wLjM5OTE4NF1bMC4wMDAwMCwgMS4w
MDAwMCwgMC4wMDAwMF1bMC43Njg1NiwgMS40NDg5MiwgMF1bMC41NjE2NDcsIDIuNTQzNTYs
IDAuMjMwOTM4XVstMS4wMDAwMCwgMC4wMDAwMCwgLTAuMDAwMDBdWzAuODQyOTAsIDEuNDY1
MDEsIDBdWzAuNTYxNjc1LCAyLjI5MTkzLCAwLjIyOTAyXVstMS4wMDAwMCwgMC4wMDAwMCwg
LTAuMDAwMDBdWzAuODQyOTAsIDEuNDUxMjgsIDBdWzAuNTU1Mzg5LCAyLjI5NDE5LCAtMC4w
NjY4NDU5XVstMS4wMDAwMCwgMC4wMDAwMCwgLTAuMDAwMDBdWzAuODAxNzgsIDEuNDUxMjgs
IDBdWzAuNTU1Mzg5LCAyLjI5NDE5LCAtMC4wNjY4NDU5XVstMS4wMDAwMCwgMC4wMDAwMCwg
LTAuMDAwMDBdWzAuODAxNzgsIDEuNDUxMjgsIDBdWzAuNTU1MzYxLCAyLjU0NTgyLCAtMC4w
NjQ5Mjg1XVstMS4wMDAwMCwgMC4wMDAwMCwgLTAuMDAwMDBdWzAuODAxNzgsIDEuNDY1MDEs
IDBdWzAuNTYxNjQ3LCAyLjU0MzU2LCAwLjIzMDkzOF1bLTEuMDAwMDAsIDAuMDAwMDAsIC0w
LjAwMDAwXVswLjg0MjkwLCAxLjQ2NTAxLCAwXVswLjU2MTY0NywgMi41NDM1NiwgMC4yMzA5
MzhdWy0wLjE4NDEwLCAtMC45ODI5MSwgLTAuMDAwMDBdWzAuODQyOTAsIDEuNDY1MDEsIDBd
WzAuMjU2NDE1LCAyLjYyMzA3LCAwLjI5NTQ1Ml1bLTAuMTg0MTAsIC0wLjk4MjkxLCAtMC4w
MDAwMF1bMC44NTA4OCwgMS40Njg2NSwgMF1bMC4yNTY0NiwgMi4yMTIzMywgMC4yOTIzMjJd
Wy0wLjE4NDEwLCAtMC45ODI5MSwgLTAuMDAwMDBdWzAuODUwODgsIDEuNDUyNTgsIDBdWzAu
MjU2NDYsIDIuMjEyMzMsIDAuMjkyMzIyXVstMC4xODQxMCwgLTAuOTgyOTEsIC0wLjAwMDAw
XVswLjg1MDg4LCAxLjQ1MjU4LCAwXVswLjU2MTY3NSwgMi4yOTE5MywgMC4yMjkwMl1bLTAu
MTg0MTAsIC0wLjk4MjkxLCAtMC4wMDAwMF1bMC44NDI5MCwgMS40NTEyOCwgMF1bMC41NjE2
NDcsIDIuNTQzNTYsIDAuMjMwOTM4XVstMC4xODQxMCwgLTAuOTgyOTEsIC0wLjAwMDAwXVsw
Ljg0MjkwLCAxLjQ2NTAxLCAwXVswLjU1NTM2MSwgMi41NDU4MiwgLTAuMDY0OTI4NV1bLTAu
MjUyNjMsIDAuMDAwMDAsIC0wLjk2NzU2XVswLjgwMTc4LCAxLjQ2NTAxLCAwXVswLjI0NzY5
LCAyLjYyNjIsIC0wLjExNTIwMl1bLTAuMjUyNjMsIDAuMDAwMDAsIC0wLjk2NzU2XVswLjc5
MzgxLCAxLjQ2ODY1LCAwXVswLjI1NjQxNSwgMi42MjMwNywgMC4yOTU0NTJdWy0wLjI1MjYz
LCAwLjAwMDAwLCAtMC45Njc1Nl1bMC44NTA4OCwgMS40Njg2NSwgMF1bMC4yNTY0MTUsIDIu
NjIzMDcsIDAuMjk1NDUyXVstMC4yNTI2MywgMC4wMDAwMCwgLTAuOTY3NTZdWzAuODUwODgs
IDEuNDY4NjUsIDBdWzAuNTYxNjQ3LCAyLjU0MzU2LCAwLjIzMDkzOF1bLTAuMjUyNjMsIDAu
MDAwMDAsIC0wLjk2NzU2XVswLjg0MjkwLCAxLjQ2NTAxLCAwXVswLjU1NTM2MSwgMi41NDU4
MiwgLTAuMDY0OTI4NV1bLTAuMjUyNjMsIDAuMDAwMDAsIC0wLjk2NzU2XVswLjgwMTc4LCAx
LjQ2NTAxLCAwXVswLjU1NTM4OSwgMi4yOTQxOSwgLTAuMDY2ODQ1OV1bLTAuMTg0MDksIDAu
OTgyOTEsIC0wLjAwMDAwXVswLjgwMTc4LCAxLjQ1MTI4LCAwXVswLjI0NzczNSwgMi4yMTU0
NiwgLTAuMTE4MzMyXVstMC4xODQwOSwgMC45ODI5MSwgLTAuMDAwMDBdWzAuNzkzODEsIDEu
NDUyNTgsIDBdWzAuMjQ3NjksIDIuNjI2MiwgLTAuMTE1MjAyXVstMC4xODQwOSwgMC45ODI5
MSwgLTAuMDAwMDBdWzAuNzkzODEsIDEuNDY4NjUsIDBdWzAuMjQ3NjksIDIuNjI2MiwgLTAu
MTE1MjAyXVstMC4xODQwOSwgMC45ODI5MSwgLTAuMDAwMDBdWzAuNzkzODEsIDEuNDY4NjUs
IDBdWzAuNTU1MzYxLCAyLjU0NTgyLCAtMC4wNjQ5Mjg1XVstMC4xODQwOSwgMC45ODI5MSwg
LTAuMDAwMDBdWzAuODAxNzgsIDEuNDY1MDEsIDBdWzAuNTU1Mzg5LCAyLjI5NDE5LCAtMC4w
NjY4NDU5XVstMC4xODQwOSwgMC45ODI5MSwgLTAuMDAwMDBdWzAuODAxNzgsIDEuNDUxMjgs
IDBdWzAuMTgwODYyLCAyLjQ3MzQ5LCAtNi4wNTMyNl1bMC4wMDAwMCwgMS4wMDAwMCwgMC4w
MDAwMF1bMC42MTQ2NywgMS4wNjQxMywgMF1bLTAuMzYyNzU1LCAyLjQ3MzM0LCAtNi4wNDE3
MV1bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC42OTkzNiwgMS4wNjQxMywgMF1bLTAu
MjI2ODc2LCAyLjcwODgyLCAtNi4wNDI4XVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVsw
LjY3ODE5LCAxLjA5MzM3LCAwXVswLjE4MDg2MiwgMi40NzM0OSwgLTYuMDUzMjZdWzAuMDAw
MDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNjE0NjcsIDEuMDY0MTMsIDBdWy0wLjIyNjg3Niwg
Mi43MDg4MiwgLTYuMDQyOF1bMC4wMDAwMCwgMS4wMDAwMCwgMC4wMDAwMF1bMC42NzgxOSwg
MS4wOTMzNywgMF1bMC4wNDQ5MzIyLCAyLjcwODg5LCAtNi4wNDg1OF1bMC4wMDAwMCwgMS4w
MDAwMCwgMC4wMDAwMF1bMC42MzU4NCwgMS4wOTMzNywgMF1bMC4xODA4NjIsIDIuNDczNDks
IC02LjA1MzI2XVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjYxNDY3LCAxLjA2NDEz
LCAwXVswLjA0NDk4MzYsIDIuMjM4MDEsIC02LjA1MjE2XVswLjAwMDAwLCAxLjAwMDAwLCAw
LjAwMDAwXVswLjYzNTg0LCAxLjAzNDg5LCAwXVstMC4yMjY4MjUsIDIuMjM3OTQsIC02LjA0
NjM5XVswLjAwMDAwLCAxLjAwMDAwLCAwLjAwMDAwXVswLjY3ODE5LCAxLjAzNDg5LCAwXVsw
LjE4MDg2MiwgMi40NzM0OSwgLTYuMDUzMjZdWzAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBd
WzAuNjE0NjcsIDEuMDY0MTMsIDBdWy0wLjIyNjgyNSwgMi4yMzc5NCwgLTYuMDQ2MzldWzAu
MDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNjc4MTksIDEuMDM0ODksIDBdWy0wLjM2Mjc1
NSwgMi40NzMzNCwgLTYuMDQxNzFdWzAuMDAwMDAsIDEuMDAwMDAsIDAuMDAwMDBdWzAuNjk5
MzYsIDEuMDY0MTMsIDBdWy0wLjI2ODI5NCwgMi40Mzk0NywgLTEuNTk1NjRdWzAuODY2MDMs
IC0wLjAwMDAwLCAtMC41MDAwMF1bMC41NDMwNCwgMS4yODEzNywgMF1bLTAuMTMyNDE2LCAy
LjY3NDk1LCAtMS41OTY3NF1bMC44NjYwMywgLTAuMDAwMDAsIC0wLjUwMDAwXVswLjU0MzA0
LCAxLjMwNjQ5LCAwXVstMC4yMjY4NzYsIDIuNzA4ODIsIC02LjA0MjhdWzAuODY2MDMsIC0w
LjAwMDAwLCAtMC41MDAwMF1bMC4wMDU5NCwgMS4zMDY0OSwgMF1bLTAuMjY4Mjk0LCAyLjQz
OTQ3LCAtMS41OTU2NF1bMC44NjYwMywgLTAuMDAwMDAsIC0wLjUwMDAwXVswLjU0MzA0LCAx
LjI4MTM3LCAwXVstMC4yMjY4NzYsIDIuNzA4ODIsIC02LjA0MjhdWzAuODY2MDMsIC0wLjAw
MDAwLCAtMC41MDAwMF1bMC4wMDU5NCwgMS4zMDY0OSwgMF1bLTAuMzYyNzU1LCAyLjQ3MzM0
LCAtNi4wNDE3MV1bMC44NjYwMywgLTAuMDAwMDAsIC0wLjUwMDAwXVswLjAwNTk0LCAxLjI4
MTM3LCAwXVstMC4yMjY4NzYsIDIuNzA4ODIsIC02LjA0MjhdWy0wLjAwMDAwLCAtMC4wMDAw
MCwgLTEuMDAwMDBdWzAuMDA1OTQsIDEuMTQ1OTIsIDBdWy0wLjEzMjQxNiwgMi42NzQ5NSwg
LTEuNTk2NzRdWy0wLjAwMDAwLCAtMC4wMDAwMCwgLTEuMDAwMDBdWzAuNTQzMDQsIDEuMTQ1
OTIsIDBdWzAuMTM5MzkyLCAyLjY3NTAyLCAtMS42MDI1MV1bLTAuMDAwMDAsIC0wLjAwMDAw
LCAtMS4wMDAwMF1bMC41NDMwNCwgMS4xNzU5OCwgMF1bLTAuMjI2ODc2LCAyLjcwODgyLCAt
Ni4wNDI4XVstMC4wMDAwMCwgLTAuMDAwMDAsIC0xLjAwMDAwXVswLjAwNTk0LCAxLjE0NTky
LCAwXVswLjEzOTM5MiwgMi42NzUwMiwgLTEuNjAyNTFdWy0wLjAwMDAwLCAtMC4wMDAwMCwg
LTEuMDAwMDBdWzAuNTQzMDQsIDEuMTc1OTgsIDBdWzAuMDQ0OTMyMiwgMi43MDg4OSwgLTYu
MDQ4NThdWzAuMDAwMDAsIC0wLjAwMDAwLCAtMS4wMDAwMF1bMC4wMDU5NCwgMS4xNzU5OCwg
MF1bMC4xMzkzOTIsIDIuNjc1MDIsIC0xLjYwMjUxXVstMC44NjYwMywgLTAuMDAwMDAsIC0w
LjUwMDAwXVswLjU0MzA0LCAxLjE3NTk4LCAwXVswLjI3NTMyMiwgMi40Mzk2MiwgLTEuNjA3
MTldWy0wLjg2NjAzLCAtMC4wMDAwMCwgLTAuNTAwMDBdWzAuNTQzMDQsIDEuMjAxMDksIDBd
WzAuMTgwODYyLCAyLjQ3MzQ5LCAtNi4wNTMyNl1bLTAuODY2MDMsIC0wLjAwMDAwLCAtMC41
MDAwMF1bMC4wMDU5NCwgMS4yMDEwOSwgMF1bMC4xMzkzOTIsIDIuNjc1MDIsIC0xLjYwMjUx
XVstMC44NjYwMywgLTAuMDAwMDAsIC0wLjUwMDAwXVswLjU0MzA0LCAxLjE3NTk4LCAwXVsw
LjE4MDg2MiwgMi40NzM0OSwgLTYuMDUzMjZdWy0wLjg2NjAzLCAtMC4wMDAwMCwgLTAuNTAw
MDBdWzAuMDA1OTQsIDEuMjAxMDksIDBdWzAuMDQ0OTMyMiwgMi43MDg4OSwgLTYuMDQ4NThd
Wy0wLjg2NjAzLCAtMC4wMDAwMCwgLTAuNTAwMDBdWzAuMDA1OTQsIDEuMTc1OTgsIDBdWzAu
MTgwODYyLCAyLjQ3MzQ5LCAtNi4wNTMyNl1bLTAuODY2MDMsIDAuMDAwMDAsIDAuNTAwMDBd
WzAuMDA1OTQsIDEuMjAxMDksIDBdWzAuMjc1MzIyLCAyLjQzOTYyLCAtMS42MDcxOV1bLTAu
ODY2MDIsIDAuMDAwMDAsIDAuNTAwMDBdWzAuNTQzMDQsIDEuMjAxMDksIDBdWzAuMTM5NDQ0
LCAyLjIwNDE0LCAtMS42MDYxXVstMC44NjYwMywgMC4wMDAwMCwgMC41MDAwMF1bMC41NDMw
NCwgMS4yMjYyMSwgMF1bMC4xODA4NjIsIDIuNDczNDksIC02LjA1MzI2XVstMC44NjYwMywg
MC4wMDAwMCwgMC41MDAwMF1bMC4wMDU5NCwgMS4yMDEwOSwgMF1bMC4xMzk0NDQsIDIuMjA0
MTQsIC0xLjYwNjFdWy0wLjg2NjAzLCAwLjAwMDAwLCAwLjUwMDAwXVswLjU0MzA0LCAxLjIy
NjIxLCAwXVswLjA0NDk4MzYsIDIuMjM4MDEsIC02LjA1MjE2XVstMC44NjYwMywgMC4wMDAw
MCwgMC41MDAwMF1bMC4wMDU5NCwgMS4yMjYyMSwgMF1bMC4xMzk0NDQsIDIuMjA0MTQsIC0x
LjYwNjFdWzAuMDAwMDAsIDAuMDAwMDAsIDEuMDAwMDBdWzAuNTQzMDQsIDEuMjI2MjEsIDBd
Wy0wLjEzMjM2NSwgMi4yMDQwNywgLTEuNjAwMzNdWzAuMDAwMDAsIDAuMDAwMDAsIDEuMDAw
MDBdWzAuNTQzMDQsIDEuMjU2MjYsIDBdWy0wLjIyNjgyNSwgMi4yMzc5NCwgLTYuMDQ2Mzld
WzAuMDAwMDAsIDAuMDAwMDAsIDEuMDAwMDBdWzAuMDA1OTQsIDEuMjU2MjYsIDBdWzAuMTM5
NDQ0LCAyLjIwNDE0LCAtMS42MDYxXVswLjAwMDAwLCAwLjAwMDAwLCAxLjAwMDAwXVswLjU0
MzA0LCAxLjIyNjIxLCAwXVstMC4yMjY4MjUsIDIuMjM3OTQsIC02LjA0NjM5XVswLjAwMDAw
LCAwLjAwMDAwLCAxLjAwMDAwXVswLjAwNTk0LCAxLjI1NjI2LCAwXVswLjA0NDk4MzYsIDIu
MjM4MDEsIC02LjA1MjE2XVswLjAwMDAwLCAwLjAwMDAwLCAxLjAwMDAwXVswLjAwNTk0LCAx
LjIyNjIxLCAwXVstMC4yMjY4MjUsIDIuMjM3OTQsIC02LjA0NjM5XVswLjg2NjAzLCAwLjAw
MDAwLCAwLjUwMDAwXVswLjAwNTk0LCAxLjI1NjI2LCAwXVstMC4xMzIzNjUsIDIuMjA0MDcs
IC0xLjYwMDMzXVswLjg2NjAzLCAwLjAwMDAwLCAwLjUwMDAwXVswLjU0MzA0LCAxLjI1NjI2
LCAwXVstMC4yNjgyOTQsIDIuNDM5NDcsIC0xLjU5NTY0XVswLjg2NjAzLCAwLjAwMDAwLCAw
LjUwMDAwXVswLjU0MzA0LCAxLjI4MTM3LCAwXVstMC4yMjY4MjUsIDIuMjM3OTQsIC02LjA0
NjM5XVswLjg2NjAzLCAwLjAwMDAwLCAwLjUwMDAwXVswLjAwNTk0LCAxLjI1NjI2LCAwXVst
MC4yNjgyOTQsIDIuNDM5NDcsIC0xLjU5NTY0XVswLjg2NjAzLCAwLjAwMDAwLCAwLjUwMDAw
XVswLjU0MzA0LCAxLjI4MTM3LCAwXVstMC4zNjI3NTUsIDIuNDczMzQsIC02LjA0MTcxXVsw
Ljg2NjAzLCAwLjAwMDAwLCAwLjUwMDAwXVswLjAwNTk0LCAxLjI4MTM3LCAwXVstMC4yNjgy
OTQsIDIuNDM5NDcsIC0xLjU5NTY0XVstMC4wMDAwMSwgLTEuMDAwMDAsIDAuMDAwMDBdWzAu
NjU1NjgsIDEuMDM1OTYsIDBdWy0wLjA3MTY1NzQsIDIuNTY5NzMsIC0xLjU5ODgzXVstMC4w
MDAwMSwgLTEuMDAwMDAsIDAuMDAwMDFdWzAuNjczMTcsIDEuMDU2MDMsIDBdWy0wLjEzMjQx
NiwgMi42NzQ5NSwgLTEuNTk2NzRdWy0wLjAwMDAwLCAtMS4wMDAwMCwgMC4wMDAwMV1bMC42
ODczMSwgMS4wNDk4MywgMF1bLTAuMDcxNjU3NCwgMi41Njk3MywgLTEuNTk4ODNdWy0wLjAw
MDAxLCAtMS4wMDAwMCwgMC4wMDAwMV1bMC42NzMxNywgMS4wNTYwMywgMF1bLTAuMjY4Mjk0
LCAyLjQzOTQ3LCAtMS41OTU2NF1bLTAuMDAwMDEsIC0xLjAwMDAwLCAwLjAwMDAwXVswLjY1
NTY4LCAxLjAzNTk2LCAwXVstMC4xNDY4LCAyLjQzOTUsIC0xLjU5ODIzXVstMC4wMDAwMSwg
LTEuMDAwMDAsIC0wLjAwMDAwXVswLjY1NTY4LCAxLjA0ODM2LCAwXVstMC4xMzI0MTYsIDIu
Njc0OTUsIC0xLjU5Njc0XVstMC4wMDAwMCwgLTEuMDAwMDAsIDAuMDAwMDFdWzAuNjg3MzEs
IDEuMDQ5ODMsIDBdWzAuMDc4NjU2OCwgMi41Njk3NywgLTEuNjAyMDJdWzAuMDAwMDAsIC0x
LjAwMDAwLCAwLjAwMDAxXVswLjY3MzE3LCAxLjA3MTM4LCAwXVswLjEzOTM5MiwgMi42NzUw
MiwgLTEuNjAyNTFdWzAuMDAwMDEsIC0xLjAwMDAwLCAwLjAwMDAxXVswLjY4NzMxLCAxLjA3
NzU4LCAwXVswLjA3ODY1NjgsIDIuNTY5NzcsIC0xLjYwMjAyXVswLjAwMDAwLCAtMS4wMDAw
MCwgMC4wMDAwMV1bMC42NzMxNywgMS4wNzEzOCwgMF1bLTAuMTMyNDE2LCAyLjY3NDk1LCAt
MS41OTY3NF1bLTAuMDAwMDAsIC0xLjAwMDAwLCAwLjAwMDAxXVswLjY4NzMxLCAxLjA0OTgz
LCAwXVstMC4wNzE2NTc0LCAyLjU2OTczLCAtMS41OTg4M11bLTAuMDAwMDEsIC0xLjAwMDAw
LCAwLjAwMDAxXVswLjY3MzE3LCAxLjA1NjAzLCAwXVswLjEzOTM5MiwgMi42NzUwMiwgLTEu
NjAyNTFdWzAuMDAwMDEsIC0xLjAwMDAwLCAwLjAwMDAxXVswLjY4NzMxLCAxLjA3NzU4LCAw
XVswLjE1MzgyOCwgMi40Mzk1OSwgLTEuNjA0NjFdWzAuMDAwMDEsIC0xLjAwMDAwLCAwLjAw
MDAwXVswLjY1NTY4LCAxLjA3OTA1LCAwXVswLjI3NTMyMiwgMi40Mzk2MiwgLTEuNjA3MTld
WzAuMDAwMDEsIC0xLjAwMDAwLCAtMC4wMDAwMF1bMC42NTU2OCwgMS4wOTE0NiwgMF1bMC4x
NTM4MjgsIDIuNDM5NTksIC0xLjYwNDYxXVswLjAwMDAxLCAtMS4wMDAwMCwgMC4wMDAwMF1b
MC42NTU2OCwgMS4wNzkwNSwgMF1bMC4xMzkzOTIsIDIuNjc1MDIsIC0xLjYwMjUxXVswLjAw
MDAxLCAtMS4wMDAwMCwgMC4wMDAwMV1bMC42ODczMSwgMS4wNzc1OCwgMF1bMC4wNzg2NTY4
LCAyLjU2OTc3LCAtMS42MDIwMl1bMC4wMDAwMCwgLTEuMDAwMDAsIDAuMDAwMDFdWzAuNjcz
MTcsIDEuMDcxMzgsIDBdWzAuMjc1MzIyLCAyLjQzOTYyLCAtMS42MDcxOV1bMC4wMDAwMSwg
LTEuMDAwMDAsIC0wLjAwMDAwXVswLjY1NTY4LCAxLjA5MTQ2LCAwXVswLjA3ODY4NTIsIDIu
MzA5MzYsIC0xLjYwNDAxXVswLjAwMDAxLCAtMS4wMDAwMCwgLTAuMDAwMDFdWzAuNjM4MTgs
IDEuMDcxMzgsIDBdWzAuMTM5NDQ0LCAyLjIwNDE0LCAtMS42MDYxXVswLjAwMDAwLCAtMS4w
MDAwMCwgLTAuMDAwMDFdWzAuNjI0MDQsIDEuMDc3NTgsIDBdWzAuMDc4Njg1MiwgMi4zMDkz
NiwgLTEuNjA0MDFdWzAuMDAwMDEsIC0xLjAwMDAwLCAtMC4wMDAwMV1bMC42MzgxOCwgMS4w
NzEzOCwgMF1bMC4yNzUzMjIsIDIuNDM5NjIsIC0xLjYwNzE5XVswLjAwMDAxLCAtMS4wMDAw
MCwgLTAuMDAwMDBdWzAuNjU1NjgsIDEuMDkxNDYsIDBdWzAuMTUzODI4LCAyLjQzOTU5LCAt
MS42MDQ2MV1bMC4wMDAwMSwgLTEuMDAwMDAsIDAuMDAwMDBdWzAuNjU1NjgsIDEuMDc5MDUs
IDBdWzAuMTM5NDQ0LCAyLjIwNDE0LCAtMS42MDYxXVswLjAwMDAwLCAtMS4wMDAwMCwgLTAu
MDAwMDFdWzAuNjI0MDQsIDEuMDc3NTgsIDBdWy0wLjA3MTYyOSwgMi4zMDkzMiwgLTEuNjAw
ODJdWy0wLjAwMDAwLCAtMS4wMDAwMCwgLTAuMDAwMDFdWzAuNjM4MTgsIDEuMDU2MDMsIDBd
Wy0wLjEzMjM2NSwgMi4yMDQwNywgLTEuNjAwMzNdWy0wLjAwMDAxLCAtMS4wMDAwMCwgLTAu
MDAwMDFdWzAuNjI0MDQsIDEuMDQ5ODMsIDBdWy0wLjA3MTYyOSwgMi4zMDkzMiwgLTEuNjAw
ODJdWy0wLjAwMDAwLCAtMS4wMDAwMCwgLTAuMDAwMDFdWzAuNjM4MTgsIDEuMDU2MDMsIDBd
WzAuMTM5NDQ0LCAyLjIwNDE0LCAtMS42MDYxXVswLjAwMDAwLCAtMS4wMDAwMCwgLTAuMDAw
MDFdWzAuNjI0MDQsIDEuMDc3NTgsIDBdWzAuMDc4Njg1MiwgMi4zMDkzNiwgLTEuNjA0MDFd
WzAuMDAwMDEsIC0xLjAwMDAwLCAtMC4wMDAwMV1bMC42MzgxOCwgMS4wNzEzOCwgMF1bLTAu
MTMyMzY1LCAyLjIwNDA3LCAtMS42MDAzM11bLTAuMDAwMDEsIC0xLjAwMDAwLCAtMC4wMDAw
MV1bMC42MjQwNCwgMS4wNDk4MywgMF1bLTAuMTQ2OCwgMi40Mzk1LCAtMS41OTgyM11bLTAu
MDAwMDEsIC0xLjAwMDAwLCAtMC4wMDAwMF1bMC42NTU2OCwgMS4wNDgzNiwgMF1bLTAuMjY4
Mjk0LCAyLjQzOTQ3LCAtMS41OTU2NF1bLTAuMDAwMDEsIC0xLjAwMDAwLCAwLjAwMDAwXVsw
LjY1NTY4LCAxLjAzNTk2LCAwXVstMC4xNDY4LCAyLjQzOTUsIC0xLjU5ODIzXVstMC4wMDAw
MSwgLTEuMDAwMDAsIC0wLjAwMDAwXVswLjY1NTY4LCAxLjA0ODM2LCAwXVstMC4xMzIzNjUs
IDIuMjA0MDcsIC0xLjYwMDMzXVstMC4wMDAwMSwgLTEuMDAwMDAsIC0wLjAwMDAxXVswLjYy
NDA0LCAxLjA0OTgzLCAwXVstMC4wNzE2MjksIDIuMzA5MzIsIC0xLjYwMDgyXVstMC4wMDAw
MCwgLTEuMDAwMDAsIC0wLjAwMDAxXVswLjYzODE4LCAxLjA1NjAzLCAwXVstMC4xNDY4LCAy
LjQzOTUsIC0xLjU5ODIzXVstMC44NjU2MywgLTAuMDMwMjQsIDAuNDk5NzddWzAuNjU1Njgs
IDEuMDQ4MzYsIDBdWy0wLjA4Nzg4ODMsIDIuNDcyMzIsIC01LjkwMzU1XVstMC44NjU2Mywg
LTAuMDMwMjQsIDAuNDk5NzddWzAuNjU1NjgsIDEuMDYzNzEsIDBdWy0wLjA3MTY1NzQsIDIu
NTY5NzMsIC0xLjU5ODgzXVstMC44NjU2MywgLTAuMDMwMjQsIDAuNDk5NzddWzAuNjczMTcs
IDEuMDU2MDMsIDBdWy0wLjA4Nzg4ODMsIDIuNDcyMzIsIC01LjkwMzU1XVswLjAwMDAwLCAt
MC4wMzAyNCwgMC45OTk1NF1bMC42NTU2OCwgMS4wNjM3MSwgMF1bMC4wNzg2NTY4LCAyLjU2
OTc3LCAtMS42MDIwMl1bMC4wMDAwMCwgLTAuMDMwMjQsIDAuOTk5NTRdWzAuNjczMTcsIDEu
MDcxMzgsIDBdWy0wLjA3MTY1NzQsIDIuNTY5NzMsIC0xLjU5ODgzXVswLjAwMDAwLCAtMC4w
MzAyNCwgMC45OTk1NF1bMC42NzMxNywgMS4wNTYwMywgMF1bMC4wNzg2NTY4LCAyLjU2OTc3
LCAtMS42MDIwMl1bMC44NjU2MywgLTAuMDMwMjQsIDAuNDk5NzddWzAuNjczMTcsIDEuMDcx
MzgsIDBdWy0wLjA4Nzg4ODMsIDIuNDcyMzIsIC01LjkwMzU1XVswLjg2NTYzLCAtMC4wMzAy
NCwgMC40OTk3N11bMC42NTU2OCwgMS4wNjM3MSwgMF1bMC4xNTM4MjgsIDIuNDM5NTksIC0x
LjYwNDYxXVswLjg2NTYzLCAtMC4wMzAyNCwgMC40OTk3N11bMC42NTU2OCwgMS4wNzkwNSwg
MF1bLTAuMDg3ODg4MywgMi40NzIzMiwgLTUuOTAzNTVdWzAuODY1NjMsIC0wLjAzMDI0LCAt
MC40OTk3N11bMC42NTU2OCwgMS4wNjM3MSwgMF1bMC4wNzg2ODUyLCAyLjMwOTM2LCAtMS42
MDQwMV1bMC44NjU2MywgLTAuMDMwMjQsIC0wLjQ5OTc3XVswLjYzODE4LCAxLjA3MTM4LCAw
XVswLjE1MzgyOCwgMi40Mzk1OSwgLTEuNjA0NjFdWzAuODY1NjMsIC0wLjAzMDI0LCAtMC40
OTk3N11bMC42NTU2OCwgMS4wNzkwNSwgMF1bMC4wNzg2ODUyLCAyLjMwOTM2LCAtMS42MDQw
MV1bMC4wMDAwMCwgLTAuMDMwMjQsIC0wLjk5OTU0XVswLjYzODE4LCAxLjA3MTM4LCAwXVst
MC4wODc4ODgzLCAyLjQ3MjMyLCAtNS45MDM1NV1bMC4wMDAwMCwgLTAuMDMwMjQsIC0wLjk5
OTU0XVswLjY1NTY4LCAxLjA2MzcxLCAwXVstMC4wNzE2MjksIDIuMzA5MzIsIC0xLjYwMDgy
XVswLjAwMDAwLCAtMC4wMzAyNCwgLTAuOTk5NTRdWzAuNjM4MTgsIDEuMDU2MDMsIDBdWy0w
LjA4Nzg4ODMsIDIuNDcyMzIsIC01LjkwMzU1XVstMC44NjU2MywgLTAuMDMwMjQsIC0wLjQ5
OTc3XVswLjY1NTY4LCAxLjA2MzcxLCAwXVstMC4xNDY4LCAyLjQzOTUsIC0xLjU5ODIzXVst
MC44NjU2MywgLTAuMDMwMjQsIC0wLjQ5OTc3XVswLjY1NTY4LCAxLjA0ODM2LCAwXVstMC4w
NzE2MjksIDIuMzA5MzIsIC0xLjYwMDgyXVstMC44NjU2MywgLTAuMDMwMjQsIC0wLjQ5OTc3
XVswLjYzODE4LCAxLjA1NjAzLCAwXQ==</binary></Content>
						<token name="MeshType">5</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>2</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Script" referent="RBX71">
				<Properties>
					<bool name="Disabled">true</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Paintball</string>
					<string name="Source">ball = script.Parent
damage = 25



function onTouched(hit)
	local humanoid = hit.Parent:findFirstChild(&quot;Zombie&quot;)
	

	if humanoid ~= nil then
		tagHumanoid(humanoid)
		humanoid.Health = humanoid.Health - damage
		wait(2)
		untagHumanoid(humanoid)
	end

	connection:disconnect()
	ball.Parent = nil
end

function tagHumanoid(humanoid)
	-- todo: make tag expire
	local tag = ball:findFirstChild(&quot;creator&quot;)
	if tag ~= nil then
		local new_tag = tag:clone()
		new_tag.Parent = humanoid
	end
end


function untagHumanoid(humanoid)
	if humanoid ~= nil then
		local tag = humanoid:findFirstChild(&quot;creator&quot;)
		if tag ~= nil then
			tag.Parent = nil
		end
	end
end

connection = ball.Touched:connect(onTouched)

wait(0.5)
ball.Parent = nil</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
		</Item>
		<Item class="Tool" referent="RBX72">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">2</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<X>0</X>
					<Y>-0.200000003</Y>
					<Z>-0.5</Z>
					<R00>1</R00>
					<R01>0</R01>
					<R02>0</R02>
					<R10>0</R10>
					<R11>1</R11>
					<R12>-6.00000021e-005</R12>
					<R20>-0</R20>
					<R21>6.00000021e-005</R21>
					<R22>1</R22>
				</CoordinateFrame>
				<string name="Name">Two Lacerators</string>
				<Content name="TextureId"><null></null></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Part" referent="RBX73">
				<Properties>
					<bool name="Anchored">false</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">199</int>
					<CoordinateFrame name="CFrame">
						<X>20.0499821</X>
						<Y>0.892301321</Y>
						<Z>30.7013988</Z>
						<R00>0.001233369</R00>
						<R01>0.554023862</R01>
						<R02>-0.832499862</R02>
						<R10>0.999997079</R10>
						<R11>-0.00240230444</R11>
						<R12>-0.000117219199</R12>
						<R20>-0.0020648574</R20>
						<R21>-0.832497299</R21>
						<R22>-0.554025233</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">0</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">false</bool>
					<string name="Name">Handle</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">0</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>1</X>
						<Y>1</Y>
						<Z>2</Z>
					</Vector3>
				</Properties>
				<Item class="Sound" referent="RBX74">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Fire</string>
						<int name="PlayCount">185</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>39a3f2951eb980b2c6dff8cec6d6104d</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="SpecialMesh" referent="RBX75">
					<Properties>
						<Content name="MeshId"><hash>7ff2735b442790a1b6fe9d416656349e</hash></Content>
						<token name="MeshType">5</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><binary>/9j/4AAQSkZJRgABAQETiBOIAAD/2wBDAAYEBQUFBAYFBQUHBgYHCQ8KCQgICRMNDgsPFhMX
FxYTFRUYGyMeGBohGhUVHikfISQlJygnGB0rLismLiMmJyb/2wBDAQYHBwkICRIKChImGRUZ
JiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJib/wAAR
CAEAAQADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAA
AgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK
FhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWG
h4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl
5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREA
AgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYk
NOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE
hYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk
5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDhNJ+F/i7UrGx1C12iHULdLmEm4GWRxlcg
EkHnHPIPBqeL4beLIy8R1pYCpIIWYnHtwRXrXwiVZvAnh+5cwNAlsURpHKsyo7rkjyWUNgD5
d5I9elUdXtguqTtCkQRnJHzkEgkkZAhbH0yaylK2xKvex5mfhTrbHMustJk5OyMsT78tViH4
O6wxyb+7C46i34P616jpcL+YCRCfTdI4wPT/AI9q67ToFc5KwkL6SMcj15txzwOlTGd3qDut
jwofBLXWG5dWnVf9u2PP5NUR+CmvAnzNVlx2xatj/wBCr6XhFuFBMdvnuS5OOf8ArkP5Uy5F
vtIJt1HPJl24/wDIR966LQ35jPnn2PmST4O6urbRq027Pe2YY/WtXT/glqrkNLr8yD/pnbnP
5luK+htDv9IhFzHevbufNyhVy+PlAwSUTuCeAR79htvq+hxRFwYtoHPQYHrWLfZmiu0fOvib
wH4ig8F3WkW2u3uoQZSc290xkLGMhgI1IODjJwCMjjBOBXmmjaf4auFNrqulNDeoCpLSSRqS
O4AbaDwRg478Z6fSPiLxBbS3TLBJCEBONrjjvnr6c5rx34j61p7wRW+ptc3EMU8k3k28xAnd
kCgMQcYG0nJBIycdTUxk2NHmU91DYGeKOziJ88mNyWCooBBAUYBOcEEk4IOQc1FDr2twuWtL
+SBm5PlKoJB9SRz9KpXU73MplkwGOMKoAVABgKB2AGB+p5qAYBIJYg++K1SA7TRviR4hsXCX
wtNUiI+ZLy1QlhnpuABz7kmuh1vV/Alzo8fiW38NQ393LIIJ9Ou7iVPJKgtlGjYYBByA2RhS
AQeD5VIBg4Jx7nIq3osUk9wYljM3mDb5XI3E5ABwQepxxjJ4z2pOKEtDoPHN9pFz4ct00vwN
DoDGdDJeR3zzeaQrfKFLEAZJOSCRgAHrXI6daRuv2i4AaNTkR5I3Y7kjnHHQcn273ns57sQ6
fao8rzTpHDDGAdzE4AHqTnoep71peKLE6Pp2mWpQxy6hAbuRWGHSMSNGiH0OY3Y+uVHammNX
sUYtaa14tIEh4AzGWQkc8fKRgc5xk5IGTTm8RXpxwxAGDuuJDk+v3qxuad5b7QxUgE8ZyAfx
79KHFNj2NVdeuVIIj6H/AJ7Sf/Fc04+IbsqyhSuTk4uJf57uBz2rGHPSg8ZB4x1pciA0Zdau
sEkEnPeaQ5/Atxx3q1BcFrYgyP5jHO9pGOO+ACcdMDnOetYMuSoAOMkDPpXc+EvC1x4i1C3F
xbXWm6IVYTaoluXSJljJUEnjLMAACRnPBOKGkhehyWr2RTbeRuHimIzwAVbGMEAnByD+h711
Hwx0LT9S1K8u9U08ahZabZyXL2xdlEzgBUQlSDguykgHkAisPy7hLS7t7lcbVLBs5AZSMj2O
CDj0rsfgxMV1PV4mJ8p9Ml3c9MMjD8cgUuZ8rKasVF0zTg91cXmk2lvFbLJPIsakYC4O0cnI
JwB6DPWuZTWQyg/2NpXPUfZieeenze9dN45vBbaRLaqxMl/OAfaNcMR9CSv8qpaRCLXR4QpD
SviR2UDKlhkDPXgFRjsQTwSCRPS5JknV27aRpS49LMHP5k+nagavNwP7L0sYPUWK+/HvXRwr
d3cqW8AeWSV1jWKMZMjHgKoHU4GMDgAZzjkWLjS9UtbBL66tJ4bKZmWOcjKSFWZGCsMgkEEY
44Oe5obRSRy41u6CusenaaAw2n/iXoSwPY8fyoTWLhY3VNL04uwIL/2dH8o9ANvB56n8K303
AZJYAggknkjnJHoeCMjjOTjrViJZFUtkkjKnBI7gfnwB6575AyXQjnE1rWJoxaLb2rQhjIIz
p8ZUEA8428YGeewBrrfFulp4n8Aw+KrW1jF9p67ZVto1QGAH5sqo52E5B64znjGJdCE9xrFv
aK+9JnCMgOFAOF6dAcMRn1PoRVzwbIyfC/xhagn/AEaG5XrngoRj+f1oUuxLWpb8DaxPZeEt
EtQY1CwswUx5yDIxycuATz1IBx64zV+/1xpLtwRDgMRkwgkDnriUZq1pHhW0S1t4LbUba4EM
SRAoVydoAz0zknJ5rTHgyJ9zEu+Tk4A5/Ss76gc/Dqj78kxZ9oVP4/63pWja6k+5TuC4OMeS
n6ZkPFXW8GlQQA6r2GMf0pIPBx3Ai4cD6A4/SlYd0TDWJwMCQgdsRxjP/j9RSa5dk4FzIcg4
BRTx6ffqdvCDfw3s3Az90fn0qA+D7ksSNQkxnkFRkfpU2YXRNY65dbDvnwQ/AwFwcDnhiM89
Tg9sdzpt4kuSoU3BwR03YrKXwXKTkXspIxn5cCpJPBUrYEd3OeCcBSeaNQuLc6gJH3FQSRk5
UHI/rXmXjePTLvXI7HU75tLEkLNDJ5Q2hsnbvGMhSQRkcjrg12/jbQNR8N+B9R1ZLiZJ0McM
LuNu1ncLkdCCAScjocV4LJas0bzyXRklJy2edxJ6lick59etaQj1BNCSRtEzI/DqcEA5z7g9
x3yOoqI8nqa1dJ0yTU1MP2tYJFYCIzhihUg8FlBIIIxyCMdxjnWHgfxFyYLe0ulxyYr6BgR6
4Lgj8QD7VpzJBY5ZsDkHIqzotybPU4rw5Bhy6YwQXAO3OeoDAEj2rZfwnqcYzey2lqAcY+0J
Kx54wsZYk898D1NILe201xEsbyXTkKsjjOCSB90Zxwc85PT3ock9g6GfYXVtb6pp0+oRLLaC
5jaZJBlXjLYbPtjJz+VaPxGlhfX1jtV22trCLeBQSQsQZmQAnqAGxk9waxPEOxRFGikDcxYk
5DMABwfTk/Tnk1El6t1DDBcsFeIBQzMQGUHoT2OOMn6juKpK4FbtVpb64VEUyFhGNqhwGAHP
GCOmSTjseaZLbyRq0hCbAcgo4cYJ4GQT698VEiqzEGSNQATkk4OATgYzkkjHHGe460WGMHYU
p/Kgc9PrTlRjwBnI7EcUwI3yF3DsQa7XQvGmt6Zpg0ie5e60okyG2VwSWxwDnoMjBBzwSOM1
x7285QgRMSSAMAEn/PvW1aWsjwxn7NcCZgAQI8gnpgHHJ6fjUSlErkk9kVpZ3/s+5kkjijMz
kAICMsxBJGTwAoAwOAD7g11vwriaO31y9A4FsluvHVpJFP4nahNcRqjF9RNqCpjtSY1292z8
xJ7nORnuAO2K9W0CzTR/h9ZXEpEf26Z72YnjEcYKoPoQGOfcVNrL1CbexxPiNDrXjS10hXAR
CkDMSQFz88jHHTAJ5AzgVpTzLNKZPLSMMWbag4UHPAz2AIAB57k85Gf4NaWRte8QSqpdozao
xIBSW4LFivuI0kGegLAcZFXWBVSpYxtkkgkEj/8AUM/jn3ofYlItaBq91oetW2s2hQXFsxZV
kGQwIIIYeuDjjBHJ45x1Gp+ONS1jwxJ4YaztILH7ZJdh4kOU3yGTyxnoA7Mcjk4A6DFcekJ5
YAgDHJOPU5+gHJz0J7kc6VrAokyFPzE4Un7uOgJ7kYz9QPbMtIE3YrRQtvHAwDgkDAzkZP0G
QeM89M8ZmkISPJJBBBAU8DrgcdCBzxnkj2Itoo3gEjg4CgcAjB598HJP4cZBFW8kESZ2rEpw
drsMkHpnucjnj+R4VwN74cWqP4mTUrhB9j0qGS9nYYICxoWx9SQo78ngY4DPBlqy/B7xPdyI
Q93bXMg4yNoU8g9+RjNWr+FtI+HtvoNtEG13xjMIwuD5kdojgsTzwGcAAYwQrHJ7afxGuLLw
d8KptGt5lS7vI1sbeMMCzKSDK4HUqFBXOMAuBmrihMyrWPQGlR9OiksCX5lu9QBz04CgYB5x
knHfitG51q6sI5ANUtEZJChWchcEfwgg8kHrjsa8mbWfEowzS3Y2kkFoFIHv9zp7HipdY8L+
I4dRuY77SbtJVkJZZI2BBPPTHGcg8cUNXZKTPTB421NVDrrFqCTj5HAxwO24EjPpmpk+JWtI
CG1e2faSOQxJA7jLcjkdK8hPhvWVODpdxjH/ADzNJ/wj2q4JOnzAAf3CTilZDsezD4mauEB/
tO2ORn0I46feNMl+JuvuFMWpwhScHEpGPfBP6V4wdE1HcALJ8k4wVIyfxpBpN4NyvaFWBGcg
8YB7dxyOfbjvRZdwsj2hPid4p2blvrQkgkLLOBwO3B6nng8VEvxW8WPlWltCASCSQe/u3I+l
eNnSrs422pOc9uv+NJBpl7K21LR84J6Ecf4UW8wseieI/Ed/4lhe21hYp4zn5EcIFbB+YYbk
gnI6gEA4PSpdG10WujS6Aljp0NrNGSzSRoWOF6Bi2ASe5B5J7HFefnRb5UUvAyAnIByQf8D+
tQvp0q8ISWHXGRRYZ1ViljDBFJYLbWbktGV+0oGcA7gxJORyxHPQADPHGhHKGbM0lq6rnO67
Qlh6E88c54/WuBSRbZgbqJJsAkIwxk+hI5I9vz4oub8TACK3SLjPGWx9M8D8KOVsZ2fjLUG0
yz8Py6bJG4vYZWu0SUthkndFAwcoCioccZJJGAcVxcur3a3PnR28WVYFQULbT7E8k+5OaqiV
g5ZpG3H+6ACaUTMTgzuCTwCc49/erUUkJnQ61pVjc+HbbVlaL7U8Klo0uQWVickbOo6nryMc
k45yvDUGktNKutadNIkcLurrK4LNj5UKryMnjceBkntilhvJ41AWdlwOpIP8+lPN/Lt2+fIQ
Sc4OMn3PGRwODmhXSAfp2m6NONSS4gmsWMO+zlkEr5cHPl4XGA3I3MCB1FVbfSWnx5djfS7i
QBGhOT7etTNeT8Dz5D35YnBojvr6OXzFu5FIAIIcgj8utKzC5bvfCl5Y20d1caZqqQuoYO9r
IignqMngkHHsa5i7dobp0ikZVXGMkgjgZHOT1J6132qfELxTNo8Oly6tLNbRLgJLh/1IyD9D
XBXpae4knkI3uQTj1wP8KcU3uNNka3V0pytxKpHcMaf/AGhqHzAX1wNwIOJGAI9OvSqxBHFK
gJYDGecU3FFKUjS0Wylvr+1srdcyzyLGg6AlmA/LkV6f8VtSgg0b+zrQ/uYimnwlTwUQDc34
7R/31WF8I9La51y51MgCLSrSS4JI/j27UH13MD+FUvEkc2veKdK8PWwO5mSEbRuw8jAsfwUA
/QHpSdnIg0LCzk07w3pVqVCyXSNfyliDzIcRqMHAxGitg8jeOxObUdoI2UkKu4bv3nbr19ME
ZJ5OeO3NnWLyO+1m5urSPbZGTFrGSBshUBYgPTCKgx1GAOTyZFaSSyENvLhzbyDJYAF2cYwe
xIBOemOB1rNtjsMSxONxZWZSxO5wF+U55weg5JI4A78DNi1jc27MjKyswUqjqNxB4zk8kk5w
Mngj6XJTEJ7xYJoo4GQKqs6u0rFwd6DHAwDwexA5yBVlVtYfsaC7t0C7Cw4YhRKGOMDA4BHB
PU9c4E3DYyNhUSeYWyBjAByDk8EdB1PHTA5xk4seDdDHiHxNDbtKYbSLMtxcMRiNFBZ356AK
CQexwD1NJrkiLNdSWwdI5pnMZIAYqW6YxycEDtyDxkkG1qAudH8EwaNZM7a34vdY9qk5SzVs
N06B3AXn+FDzzmmtx2RveBVm8UeL9S8cy25jswTYaRE3IjiUBVCjPBCYBI4JYnOc15T8aPEK
a742nhtpBJZaWps4WU5VypJdvcFsgEcEAHvXrHjbUx8P/h3HZWM4jvin2SzOOQ7YMsgA7gZO
T0JBz0r5rAAAA/xrWPcnc7n+2/iG6FftWtlXGDhH5H5c9adf+PPE13MDe6jK00MawktlT8q7
fmHrgAEnnPWuon8SeFreYS6f4waSPHMM2nzIScdSQCDzzg4HtWVLffDy81C4vdSu0uJp3Lu6
QzpuJxztAABPoMDPOO1L1JMM+MNaK7TdsQAcZOSKiPivW8ELeuAfTAzzV68fwDK2beV7dTng
GY9+vKnnjHpjPfBqFx4GDblvZChA+XEoxwOfu9c5Pcewot5FFB/Emqu5aS7kY9Mk5qvNrN9I
4dp33ADkHGRWpIPBbY2XjIAcn5JTuGPXbx+FMLeDsYEp6jkeaDj/AL55+tNegzM/ti+yCJ3w
AOCc/wCeeanttdvoJfPVkdhnhyTkHtgY44zV1f8AhDc5a6ZRnIGyU/h93p7jmmzjwgcGC7Kn
HdJTz/3z0o07CLreL7o2kIbTrNWDbvMV2JJ7hgScZ65H4dwKN94mubsH91HGW67RjPP6fXrV
bb4cGSb9XI6AJKM+33acjeGlcFpVZcEEZlHJGAfu9RkHrgmnYNDPlYzAHJBAzyc59/8A9dTC
EpbC4YfeHyjOAw6ZHuMYIPb8Kuo/hZVUNNKWB5cFxn2wV4Hv27Ust14aFs0caRyyNIHEsrTB
lXbgoAoCkZ5yRkdOlCb7AYhhYsWCsQeeoH+RU0S4IyAOnBOCPapLptMdg1vdJbgDG1VdgT65
I/QcVBi1HTURz1xG3IqrXAtBA3BQ4PPANKUAPCHGSemaksbnSY7qB7u4ae2WRfOiTcGdARkB
iODgYz+ORirV5qOgG4nFjHJDbGZmhEzGR0Qk4Ukrg4GBkc5z16hWYFRZCpwEBz684pkrlmA2
89emanTUNNVslkY4ySyZzz/u8CrMWpeHvszJLERdGZCsyBlVY8HepUDliSCD0ABHfgsBn3Ch
EBVTgjPzDGKouAUZiQc+pxzzz7j6V6F4j1n4fHTLaLw/dXfnrGFn+22pfc3qhOdo74rza9kV
7qUxOXjLEqxXaSMDnHOPoKEC1IGyWIBq1YWtxeXEcFpBJcSyMERI1LFmOAAAOp5xgc10/wAP
k0aaa6gv9Jsr262q8E17M4jjAJ3fu1YBycrjcSAMkg542vHNrY2emRaiZRNdyyCG3jj2rGgC
klgqgBQoAAAAGSCQcHKclewzv9N0P/hA/AT2OpxmLU9SAnveP9SiqSsee5AJJxwCcc4rxrRd
Qmt/Ep1aQtDNOJTEcjKmRSo5OMEKxAJxzjkV0PhdZda8Pta6hqF2qLOY4nWdhlSvKEEkEZOc
EdgOnBqeM9OjFna6gkUUPnrKk0cX3DLE4Quo/hVgQdvQHIBwKlb6iNBGLyTbmZtzEtsGATnr
7c8YPQcccVehkZkJYtyCMIMAA8Yz+OPTk+oxhaf5g0yynMhxPAshA4+YMyHPqflBz3LH3rWi
3bPnkMRIP3cHkEZJ9RjIyO/Pc4hqzHcuxsPOIbA2gsdv3lz3Ge4GBz3JPriYZklcgNGoADlj
kDGemeoABHHOfXvWt8IjErtLEEHH3SB0P0Az3yT65y2eRUti2QxwABgZU4zjH5EnrnA6gZAN
rwxpMWs+Jo4rlwljaK0tzKThIkVSzMfZVDHBznkehrc8DSP4p8X6r49ltTFYxYsdHiIwIkUB
EGOfuoSSeRuJNc/qqy6T4MtNGsgz614rcRBUXDx2gYb+hPLyKE54IRjgZNdj4s1K2+HfgdIL
ZEaeyhW2gXAAkunByxx1CkFj6hQM80RV2DdkeM/GHxIPEPio2tqSbDSg1vDkY3SZHmOcnnLD
APGQoOASa4M8cGlyepJZiSSepJ7n696StlorAtC40UWThcDPTJPFJ5cWPuDI7kn/ABqQqT8w
GRnGRzzT1RmOApP4Gi4Gnrlvo6XMUVjp7WoSCNZBJOzl5No3Pz0BJJAHGOKzTb23ZR/30f8A
Guhv9Gt7N4H1S6azNwA6rJA5YIQMNwMEHJwBk8fSq+rWOi20CyafrQ1Ak/MFtJY9vsSwAz7D
NSmtg6XK+kNoFq8p1TRG1AMpCqLx4dh9flzk98His65isjK5giaNCSVUuWwPTPf60jOjHIJ/
Km5X1qgGeRF/dP5mhoIh0X9TT9wzgUnU8mmBRcAOQBjBIFJTpMeY2PU/zptABRRRQAUUUUAF
BIA5I/PFFamg65qGgzzXGnG2WWZPLZ5raOYhc5wodSASQM4GSOMjnIDMrcpOAQSfQ5NaVjoe
uX4zYaJqN0P+mFpI4/MKa6GL4leMYebfUYrbgj/RrSKHPvlFBB9wc0yf4k+N7hCk3iTUnQkZ
H2yUA+2AwGKZOpTfwP4vitWurrw7fWVugy0t3H5CgfV8ZOOwyfasa7tBbxqwuI5WLFWWMEhT
gHqeowcZHGemRzVu61i5vAZL24muZTnmV2cgexY8fSqNxKJhuyQxOSvYDHak27jVxkTshDIx
BHQg4xXZ2GmwatptrIGeMKm6QM5fdICRkA9ARjIGByRnjNcdDHJNKkMSNJI7BURRksxOAAO5
ycV7LHosfh+2stMusC5t7ZRcsDkCRiXbH+6CB9QaibsN2OWkvP7Bnk0x54hDAisIUQDJbJOG
bceMZySfvAAcVjajfXniGdIYUEVvENgYD5UBYseT1JJJJOSSSTjqK9sTrXiG4vHClHdpMPyM
E7VB9cDB69FNbzq3lBUCwxbztCrjBPOPYcZx0HT1odkIs3EiqEgRljt4kWJFyDhVGFXOBkgA
knqST0GRU0UjeRGsRBViMFjyAST15yOMkjnp6c73gDxDYeHmluJLWaW7iu4rm2ZGUKyqjI8M
gbgq6s3IyQcHBApPFmpaRrfiS71fStI/s+3nA8u2VgACAASQOAWI5AyABx61le+5VigqlxHG
qs7nAUNwD1wCfcjPsAPQGrGj6fPrWv6bpCSiKS7uERHBwqlj1OO/fAOSAB0IxVRo9iLLOVjL
lQqDLyOcfKoHJJIHA4HXPcYiaxqUOqwatpErWEenSeZHPEFdjIQVyMghmwSMn5VPqetpXJPV
vCNvFrHxL8S+Iywns9AZdO0xFfeqhPkRsnqcAvnPLEnnrXnHx71hrrxRDoiMwj02INMpOQ08
gDMfchCi89CCK9B+EE1nHNqFjbR7EvNPtrwLvLF3UlZSeeTuVicYAPQDgV458V7a5tPiX4kj
uiWeS9eZCcfNG+HQj2KkY9qcLXC/vHJ0UUuBjORx25zWgzQkUxyFsDg56VKb3bGSsYDBSfof
/wBdQy3LzMzGJFDEkhdwB5zjrwPanrNEqkNYROSMbjJIP0DD6VLjfcak1sdP49t7xNatpJbl
J1udOtbhGUgAK0S/LjsQQR6mudPn+WVZiFPJAbr+FbviDxjdeIbfS7S/0XSIhploLa3kgSVG
aNSSqsQ5yRk46DrnrWKGIcgW8OQe7OQf1/nQlYkktNPmuSBFGWJHQcmi80q5tZCk0DKwHQg9
/wCfWuo8I/EHVfCzObDw/oFyWAGb21eUqR3B3ggnr6fSn+K/iPr3iUN9q0nQ7IsNpaytGjYr
jpkueOvI5680veuCOGZCDjBA9wRnnrTSrKwwDnnsRmrLySMpHlQgk5JAY9PqePWoGWQnnbz9
asCjJ99iT1JJ4x3ptXhbsWzhck+nWnLav0Crzx0pgZ+D2IpQhPJ4HvWtFpk78gADrx2Faena
TFEyzz4fByFODyPapbsBlW2nxgK1xDcOGAKhSFyPoRk1aGm2jMoFldcnBBmUZ5HtxV6RpBNO
JZHUSuGD5JAAGApx24z7c8HrU1lPbWkkjOIrgywsirggKxIwwOQARgjnIAJ4zggvoK5kXegz
tLutImjjJwEmkDEfiMZ/nSDw3dkZF1a5I5B38c/7vP4VslbnyXlM4ZgRhMZxz2J6EA1Wsna9
urmOeWVYoQCVUjMjE9CT90YBOQCe3GcgvoGpnXPh26tbhoJ7q1VwsbKVLsHV0DqwwvAwRkHB
B4x1qaPw5G0amXWrWFyTkPFIQBkYIO3ngk9BjjrnjpQqvKHkGTsWPBAJ2qoVRuIzgBQM5zxn
PNQz/Z4SWJO0E5UMSoHp6/rk+tLmDUxX8NWUdtPI+vxNKiExolq5V2A6FjjAx3wcelR2HhHW
bqFLkWzJaOQBcBGZSfYgc8c8cds1uxXNlBerOgSSWI/u2ILopB+8oYYB4yCRkdsVoaxrutR3
CJPf3c0zHABdnIOAQOTleCOmB1A6HC5mPU0/CkfhnwdGNRjhl1HXA22Oe9Cxwwccsq5JY9wT
jB9elZPi3xXAYb2FVluLy8hK/aA6siFjhiSO+M4A9QTVBrjVdRiYkySQgnmSUJk+oywyPcZF
c5qNwb4Q2tqjssQZnUKRg9OPUADr7mko33Au+Hhb21lLcTyLGzsBGpBO8YI4wOABnOcE7uAe
caS3VtGA6urAHqQTuAz3xySePYcd+ckxw+VEhWcLGuCRCcE469etNMkXyqpnKrg7ShxnuR6c
1TSuB0Fvc2m8EyhsL1UkYJ9PU8Acdu5609ryKJDKCokUghHJUDjqx7KAMccnp3BrIgeJgfLt
55HI5xCTjnoCTx6ZP14rXs9Gmuykk6q+GG2IElUbGQDn7zYB5PAPAHeofKg1KFlZyahKbi53
m1bOMDa0oyfoUXJxgYJHHHbqtV0qD7DDLEIEIHKIoAdeflA4wMADAAwc5xg1pDSzbwRrbh5W
bhY4hkg8Elz1PXHcDng1sXWi3E1uVu3VAqBU24XexByeCOxwMgEj9Y5r6j9TiU1Gbw7qmnaj
p0bLJbLnymYhJo2PzoT2yADkDAIBrp/HGneHfiDocWt6bdxWepWyCMTSEgDGSIJx/CQSdrnI
HQkggh8GgW99qNq6Th0ifaQR0IC8EH0BzgYx7niqtnoMGm6pax2kkovbnU3j3R9XgjQvIpXJ
VlJaMfNkA+mDWilYlo8Y1LTr/TZfK1C0ltyeFLrlW91YcMO+QSCKqAZOMjk45OP/ANVfRXi1
vgutmlrF/bEmpMmLuHQJMQCQ9QxlzGCDxlcgGvMNVh8BQQ3VrHp2uR3TQu1tJcXtrtRwCVLB
EBIJGMBhnoASa0W1yjkoFGPmBwAScEDNTwRNIxWIIxAJPIJAA64/wqNCNgIGAAOBk84/yaWx
meC7EsbMrKTgqSDzxjI6dfyoETNaSs8UiASDBDHOAP8A61TbZerRR8YwxYjB/r0pzTOeWkOS
O2fegMx53H8Dj/PNICIvKc8R4B55OPzx04pv7w9REQf9oj+lWApYMABlvX2NJESjZZA+RjBO
MHPX64BH4/SmmAsTuo2i2tj3+Yk8/j/Kn+YzAk2Vrzj5txGP1qeOSJmIFsi5AGdzcEZ+Ye/I
45HHvV0IuGUmGHaByzEZJBwec5zjtwOOmaluwrGbHO8fy/Y7Q4yCSwOT7c/qKeLu/IIAtsHp
8yggY4+gq+yW/mea8cbRbhkKxJXOcDP1Gc/Tsaka3ijLfLEcgsuDk8kYz6DGevJGD70rjMkT
X+cDyRnH8YwPfPYVF5t+GKkA5I5Ugg8/XpW5ILf5CbcEbgWAJ4G4nAPfggZPPerPh6PT5dct
RqarHp7SqJMZ+Vcc/gSBk9gSccUcyA5p/t+A5jfBAxwAT+GenvSxSz291BdrbMzIBlXAIJGT
kHnrnp/Ot0o/2hvtaYkB/egDBDZOQPb0A4xjHFQarHBbvFGqN5xUmVSRhSScDHY7cEg9OO+a
FIVh3i7xDL4l1o6hBpNtpKmCOJoYBtVmUYLnPUnP5Y75JyYormCcXUTCORgQduGDgE9R9R2w
aslQVyoAwM9aaqnhcnBOcZyBx6euOM1XkCLUl3M0mxXEilVO6OILhiAWBBbIwSRnuACBzTYk
a4cRrazyswLELGCQACSRlumASSegz6UzyR1HAyMc9DW3odqJkmLkJGwEDOQTtVgWc/QRo4z6
sPWoegzLit5VTK2k25RuG9FXGE3gkljgbSGOeg5PWpoY9RW4kuLhZYmcOZJSATjaGbJz1wQS
RjGQD1xWrKzXDbpgY/MBMgyAFWT97ID7LGqJ+QphOQ0lwT8oLzqQDgnE0q4+piT68YzxU3Yr
HM2ej6hFqLXV9atuG9jsZWIcYyevABYc+pArRtLG7jurySa03SSvtUFhwqkIBg8ghiBkd+Ox
rcki8okyOXMIDOCPvFD5sg/GR0TjuPaolWS1Y7wHa3BJIGSWjBPGeuZpQPcr7U+YZRXT75lU
C1DbiAMPknLFenbLAgY6kHtSRafdNkiwWYAGQYYDCDIzkjoSCOe+TjHNasbSQ7o1YNIgIjbH
BMaiFDn3lkY+nyk1WkuSl9cLA2YYiLcEcgrGoTI9iQT75z3pJsLjbFWQqZ9NUbR8xM2AeO+M
gAZ6Drirj6s6JCBp4mQtnYHBZCABu7YHBAwSQM+2cyVZOpkbaRkHrgHt9ahtTFBeQTXcAvbR
JFaWAuV81QQSoYcqTjGRzS5VYqNm7M7e08Si4l84WMkTnO5X2ggnvlc8dDgdccio7vWbq5ZG
eKHyUx8jOwKkY5yBwDjsCRzjrXD6nd2UupXEul2DWdvKxMcG9nMYPbPU/jVBi7MoDMRyQCev
Xv270KN1cclyysnc9AtfEV/PfpBY25gkILEOVCAKpydzEYAAJJOAcYzkgGr8Rb7UbO3t7qKO
Sz01bFbBGLKslwzN5k2QCSpdmGcdEUAnkiuKvr17eykgtmbz3KtPITgIoIIQEHkkgEk4IwBk
5NZXiLXr7XGtftUsrC3jVMSStJucABnyxJBJBOBwDngCrjHW5JnTXElw+ZWIjH3YlyFX2A7e
mTkn1NROVPCqB6etNorQDUETbVAK8gHgnHSlgQQyb2QS8YwCRj8atrHIp8sqUKgKckjJA9+v
rgU8Qu0yRHKs/QEHkY/UfSlcm5FJMjnC2gQk4BDsSOPft35oRHALGIsudu4EgA+me59qI9pv
pFVZHjjJG3O0kA4wfTnsM1eeZfK8sWsZJOSzEnoPwwevPegZWV8kAxhhjGASMj0/zzViOS32
kSWZIOP42GOP881WIiyc28ef+BD+tKscTdLZMj3b/GjQkupJYby32J1AHd2PP6d6txS6cSCu
nTHJ5wXIJyeevHXoKx2W3U4NuoYDqWb/ABqRGsfIZW08NMQNsomcbTznK5wcj16UmkUas89i
Bzp8iqScEhzjp7/zqM3lkACts43ADI3ZOB+PrVCRtKh07zJ4SblnACxuQQoJJJycAY2gE55z
wcEVFZpFLG0gtoSQeFLsSBwQDhgSeeo/IdKOVEmmLm3UhgrvjqpDAj8cfyqWXUtObBTTyvYr
5jkjAHfAzk5ORz61gXwaNRIltBGpYqNjMwyB0IZiQeR3I69K6fwr4Xt9X0d7++ulswHcxhEL
ySRrnJVSwAUEEbmPUcAgEg5VYZXXVoMAMkqBR8uHk4A7dc+3+FVjf2GSRakgknkuc8+ufrya
2ZYvhhGDANW1IyFRlwVI3ehwpUjPYZHuOtc3q2nW8PmS6NeRapbxxmRnWAo0QB/i5KkY7qT7
gUkkCJGv4PM2JblgVJO5iu3nGPUjkHP4VE18oABtR0I4kOCc9eRWG9yQm1YkVweXIDAjnsR0
+lX7eCd7e3le2MkUoJBEiruAJU4BU4OQRnmq0GaI1GNNpFqHyAf9ccDPY8cH27VMmuyLC1vH
aIFYPnLEk7gFJPvgYz2BPqaxBp+oOIxGI2Zicgqq7TkjGTweMHPAHSpIbW4ttSms7uCGaWGN
y0PmBQDsJDbhwSpIO0dTx3NJ2YHZ35u00bTdQZ7cvqiXJaHy3JQLIik5Gd27aDgAAAYOeapL
eahvZzFAxcksCjgHL7znjnLAEjuAB0qjoMt5JLFbQulnGSwcElC4CEnB2sQeS3AAxzjgERjU
WK5Gp3eOMZGMj161nytsehs/br791G0VqrsRtaSVgXYOZMcjGdxyR3wAeBUivqcTwl7W0fyi
pIa5OG2uXBPr8xLH1OCegrAN827I1O5xjIIUgj26003jdTqdwR7qf8afKwudFHdXsZQ/2fZs
I9uwNdsSu0sRz35Ytz1OCelV0a9jjEaWliEBOMzEn888/jWGL05/5CNyP+Af/XpRfHodSu8e
yf8A2VHKxGxPLqjRCMLaIqgj5ZAc8/X3xSaHa3es69ZaNPepbNdOI1nC7xEMH5ioIyOD0OSe
vUE5AumkOEvrp2IPDAAHr3ycDA6nNPnit5PD76lPqLm4Fz5ENkUDlwFVi5fI2gbgAMHJB5GO
WkwNTR/E9xpUt9BaF5DdwPCDIzIsJA4lUhuXGCRuyCcDFZE/26cfamvDcyykeY7Alwxxyc9f
TIz9K0LLwrqmoaadSspIo7ERmUvcMUYqrFXYgAgAEE8kcc/SpeWs+iaikZ1C2uJVByIWL4GO
rAgYyDkZ5xnpTvroCRSSGKVzBKrmNSMhGwSSwGSecHOeDxVHVdLe0uLtVnhmFvM0X7ts7gCR
uA7jjORWlZuBPkL0dXPBGQCTg1m3Dbrmcs3V2PXODn1HUdsihNtgjMopTgZApKsZ6X4Q8dan
4MF/axaFpl5JcBY5hqMDO6FQcADIwRk8Hr3rkrW5aHUPteGLEtxnOMg4Az0Az09K9p/4Vt4c
1G8S5kudRRbqGGdyZFBJeNW7qcEkk45xnGSAKx/Efwrtl8dyeGvD2pOiJYtebtQG84UAsu5F
HXIIJAxyMk4znzRFa55MJpIbqSRXZd5PzZAJ5zznP+NOM8jcmQnPv1r0FvhZr+3aTaspAzh2
HP0x+tRL8PdXifyxcQ9s43HH6c1XMgOC89u7jrxzTvObtIOPTJ/Cu+/4QPWVGRdxAgdSSc/p
xSP4F1jbzdxsw4ABIz19v50cyA4ETv8A3s+nGQPf2NOWdlIIw3fBHWu2fwLrmSRLExI5y5Gf
bpz0FJ/wg+uDqEJH+2cfoOKOZAcW96I4pglsJZpVCjeAVTDA5UDHJxjPIwTxnmqFrLc27mSN
CrFChODyp6g+ufevRP8AhCtWKqSbNgwBU+eTuBJAx65IIHqQcZxUc3g3UIlLPFbMAM/LM2QM
4zj0ycZ9eOtTzIZxd0yzWEN2ZY2vvtL74djAhNow5PQgkkYBJ68DIzO+t6o2lNpbSuLQxiIK
pAyoYEA45IyOh4PvW+/hu7RS5WMKpIJ3EgEHHcfhjsakHhe7YE4XAOCcNkH0PHB9jzRzxFY4
WK3DNh2KLxzgnIrahuEt7Ge3iWIbo2Qh9wJU9sAgE98EE9OeK2m8N3ChSGQhjgEE4J6YHHJ4
IwMnNRz+H7iJAzBSCOxP8sUc0WByLwsQ207sMfbjnn26dDzViydYmVbmIvEqkZjYhs84HJwB
k845x0rdOhXW7dCAxI+YEEgjPQe/f09+1M/seRiwaR0PosRIz6ZzxzVcyGY8lxK6qFto1wMH
945yc9cE8cYGB1xnNbKt4dE5ktbbWgWVkLS3EIBBGOflODg9c8dqW20SeSRUMrJlgC5RtiA5
5OATj6A49DUkGiXE4m2S5eIg7WBUlSwXfkjG0Mygk4xkHA5IV0BNpOoRabdwiKOZYgZzIzMs
jkNCY12ttGBnJwOoPsM8+FVOASwAGOMdq6W40jVrmG1tJYhEbZRbxqQAWLTOpLnPUOSh44O0
HGQTlpo+oOYysBYybNoyuTuDYGM9SUYYPIIweSARNJC13M/jOBkj0OKaVPofyrRXSr1lUrEW
DAMuCpyChcY55yqkgdyCBkginHRtTXcTbMQqsxwynIEYkJGDyNjBsjORkjODh3AyyD6GkwcA
4IFa82h6ugctYuoQOXJZflC7SxJzwAHQ59GB5GSKN1Z3VtcS2tzC8U8LmOSNsAqwPIPPXII9
DTUkwsyCJwjgkHGCP0NXrm2QaXHqyEGV5HgkhwAI1VU2sDuySxJ4IABU8nJASw09ZTM11dJZ
osLPGWBZpHBA2AKCVJyTlsAAE55AMsggttJZwZJLkuoWCSHIKHcSwYHgDjggEhuOhpXYGje+
KLQeA7Pw4bI3M/lykyuxUW7NKGDgD7zbQ64OAA59cHm3uzdXk87A75W3HJycYx+PAAzSptmw
XUYOCQOn1+n0pkLW5kZGtwTghXV2Uqcnn0I9j+dCsBe0/c0zRpgu6lVBI5J4GfTk1laipt7y
6tWOXhleMkDAyGIzz0HHQ10Xh+zM8kt65Ux2ZzJExxvBVipyOg3ADHqQc1Q+IHlf8J54hNuC
In1GZkyQflZyfx6/lSTVxnP0UUVYH2Zc2trYalp9kC8gFtbRoQmWAEaqpOODwvU4GecVUH7z
48zQqGYpodxkgbjyEwMd/pWtczXN7p9jrNhqMkMc1uhj81nDFVLKGVcYAJXPqQRwM1zN9can
BrcutR6on9otELd7xVdZDHkEqSCMDIB7EEA5rCS10En3LepTTwrIcGLcDh9pJB55x69ODXPz
XM11cSS+UVY8MwTGSAOcDABxz/iea0Fg8TapC/l6t50zRvJGZpJeSvOMb+mAetcje3Xj21lC
MFlIBygdgGHTJ+f3xkYI9BQncRtMkpQBSzDIJbOMf4nmoXlvUkl2iTAC7BtDBhnnJ7EDoOhH
vxXJpF8QGbA1HUACMkNcKAPbrz+PNXYLfxwqbW1Fsk8tNKCTn6N0/D86bQJnQG4u8ICGBLAO
QgLKuTyo6E8dDg455NWLKW9k8xLgmPCAo3lgAnc3PXOcbTg5BGOc5rnFsPHbyljqUSpkkkTk
Y9sc8e1OW08cLgR6rGTnndITjr045FIZfXSjZIkUF9IE3gglckELtUZ5wACSD2LZ7VQuLRoB
bmOdWECqqlgQCoO5QfXkA885AyBTHs/H5OE1OJhnAJcA446jB/SqV9beOdux545gM5wwJPty
ORnmlYC9LpguLNbcXajaNjJyCCD8xPqCcnPIIyRmoGs5kYRx3QbcDvOcAszEknkYBIJJHI45
HArGnfxirI00rZQg54BI46nHoP8ACoJpvFJlZhqDRxsSRCERgoPbJUkjngnJxS5RpmvLZ4S1
2uhWEKeD8zZIJPXgEnJPUHjg5qeRXkUjcA2McjJH/wBeuc8zWRu26qygLxujjI5Gf7vB75PP
61u2umXz6Za3U+vz+bcozqEjiVQBIyYJKnJ+QkngAEDGc1FguFtC0JYvKsgJ5B4IP9abIsaj
emGdiTggHHTB+vGc0q6fLBeRrNqb3SPlSpRCASCM8AHIyCM8ZxkHkHP1O51C11B4rXXfDtzb
b/leC6DxKpz947cggEAjk56ZqlFsGxtxM6MwCsqjkkDAB/qahtNRs49UgE5P2aQm3uCQQTFI
Cj9egG4H2Kg1l28mqaxqEsV2ywRREhXiiGHG4/MAwyTjGCQOOoBPPsfhf4S6HLoMWueJdZnl
tJ4RKsOUt1jjPBLvjJJIIABAAxyTxT0WjBXOKcXEjGC+LRTSnypnPIVnIt52OOhW4jhk/wCB
Z7iq7NLdEGFVS5usNHyAY5ZSXUexS7gYcjgSY4zVPx7qlta6/fQeHdVmvdLkVk3yoCWLoiyD
JALA+WnzdSVBznJNRNYGp2cMd3rTWF9fajIktyygRxxOY5C7EAEZlXeSACMEjqQWkwbNYgMR
c2AKbyJYEdScED7VApHb5xcQ557A4qa3kjtBvtlF1HbgPDgZ81IszIuTyA1rNKnQ58vGOARh
alo9rptyIoviBp1+owTJZ3TFVIJYdcEkMSRjkEkjvmPT9L0y5tZJG8bxQvCNy2+yUyNgEAIB
weCQM4ABIJAJptMLq50sk0cMZhcv9ngG1iw3CRY18p+e5ezmRuOvlg/TkPFtvPHcW93K6vJK
jQTMgwTNA3luT6FlEb5778962JvDumQ6YL4eOY7h1j3NYLHMJWATbsGAVB2ErnJAHGccVzV1
Pr1xp0EmrPKqzESQ+fCi+YBGsauDgE/Kqgk9SATk80RVguZrM+7zNmSepHcDtn1HXn37GrKK
t4YlDLEzOFZ2JCqScZPoB1+lQRXckTMSquHADDYoBP5HH4f1pvmHO8gjA7KAQfXI5H0rR3sO
LSd2a2q2C6ZeXFrJqEOpJERsmtjhJCQCVBxnAyAfQ55PGcF0bcSV25Pocf8A6qsyTltpWSR8
DHQAgZPtz1zTF3MWLysoAyNxAz7A45NEVZajk05XSsaWiX6W7XFuqMVuolBUnJDIyvgHuMrn
B7ZHpWN4mkE+v6hcKwcSTFgRk5BA5/L8M9OMGnxJI00YjVt+4bGyBz2OMcdM/TrVS4AMhYKF
DEkgDAGT09hTS1JKdFSOvcD61HVAd9468RWcmsg+H/Empahp4hUIbmSUPGcn5PmAJAGACO3X
kGuaOtXfIN9PyOfnY5rOms7iGaSKSMBkYq2GDDIODggkEcdRkHqDimeRN/c/lRZCSVjtvA3j
C80bXkvi5vW+zTQiF5HBIZDyCP4gASPf3rotU+Ld1dTkRaHbrBuJUSTPvYHuxXAJx6DB615Q
La46iMg54OQMe/WnG2ue8ZJ/3hn+dTyxBo9Fb4kXTEE6RbAAg48+TB/wp/8AwsufGBolr14/
fPwPy/8A115t9lue0bEfUf40otbo8CNiT7j/ABp2QrI9HX4mXeQW0i1YAY2+a4z+lI3xIucE
LpMMbHgFLhxj9ORXnf2S7zjy2H4gf1oFneHpCx/4ED/WjlQ7I79fiRqoUj7PCc+rMSPpSR/E
XU9xElvAyn1JHb2FcGLG/wCnkP8A99D/ABpos73OBE303Af1o5YhZHev47uJsK1qsSk/Ntbd
uHpzjH4VtaXe6Tq6rHbXqRXhGFgkyjMfRc8H0wCT7V5X9n1BefKbPoSDn9asQrM3yzW7Af3l
wcH6Z6e459jUuC6CZ6Zc2skKssimMKGLSE5I28YIyOCSBnnnjvWrc6Rq0fw5s/EjSWkmnQNJ
E0YnCyk+a53BTnuRwSD6gDk8zBqM0mnx2l54h0u5ZQCs9xFOZVUj/VswX5iDxk5I5GSMYr+R
EYmj/t/SvKfJZD55B+uV5PA65rLl1Hcjv9cjuLMjSFdi26P7TMNqrxglVPLHB44AB7npWZb6
e0VqtvaqdoGSWyGYkdcfhj24qG5uRa3LJb2cV5GnAlDuqkegBIJHuQPpUkWuXicjRYR1xtcg
49OT+laJPoHQ19OhkjCTKSlxE4DjuynIzjuOfz/Cum8eXuoXcmn6GdQunt7bT4JIrJGLIoaM
EuRwASTkEnPXGeg4P+3rvzRIdOZWAwMsGH5ZHfB/Co4/EdxZiWa6E1xd3TAySzor5CjCqp3D
ACnAAAAzgdBieV3uBbuNFvYX/e2t2MYyWi3EggHIwcEYORjg5681TEcEMoWWSVFBwS0RUg/j
xnHrWbd63Pczy3DXV4sjnIRXIRR0AAySAAAMDOBViDxDctCsTyqpRQo3bjvwTyc5GcHGcAYA
PrmkpWBo1rm2gO0QC5cMAcsqMRnhfukYzkcHnPap4rOK0064vL57gJCYgfIOxmXeMqWGcFlL
4JBAKgHAIzDZm21do7V7cQ3bHcEQACcYONp7n0XnPQEng6ltpU81pLp0TForm2kMbKPvMvzh
SDjBJUD1Hoehlu24Iy/G2lNoHijUtJt9QuJ7WJw1vJI4JkhdQ8bEgAElGUkgAE54HSsuFtRu
3jiilnnYkKiD5iMDgAY4GOw6CvSLux03xJ8KtC8TvahtSsJDo17MXK7gi7oWIHX92VXJwegz
wCKfgPWj4N8QJq9lY292FjaOSCbOHViD1IO1gVBBAOORgggBylpoNJHC3ej6jaQ+ddQPFGXa
MkhRhgSCCOoIII9M8ZzVZcqfLkGMng9QR6j/AArtdf1OTWTGJlZtisSrIBuldi8kjEE5LMSQ
BgAHAzgE87e2ZwB5ZKsOAvPIHUep5z79sHqoyb3KaXQopbLIzquSoPDY6fWnrpsm8FlJByQM
HJOOn1xk1HBI1pMrSAtHnG/ngZ6H/Oav6jcSkIVcqJVHQ5Ax3+uMGqu7kjdNWOOeORsAoQEy
BknPX9cfj2qlqzw3WuMyYIk4fAwFbb19gCAcdB0qAmaacW0T4JBLMxOEUDJY+gABPH071TuJ
UBMVvnyh1YjBf3Pp646AcVSWohWWDJDMUYZyVAIP4dv1qGSOLZlWJbOMEEcY6/nTN2MknHvU
bOT0JHr71Qz1nX7P4XNPJJp+ta2HkdmKvaphCWJxgHkDJGAenSse60TwpbzvHJ4jnKjoyW2c
/jk56gf/AFq5RwWkJIOSSSMdc/8A66Vcs2GY4x15NQk7EnVQ6d4EIYTeINSDYJBSzHH4Z5H5
fWpW034flgF8S6lkjH/Hiox7n5+B9M1yDRHOQevfpTGQLkHPrT17j+Z1k+n+EEAEGs3UvXJe
3xj8ic1WFh4ZOS+tTxjIxi1B4/764/Guc49T0pOPXt3poVmdTb6V4TklKv4oliUHG97QjA9e
Ccj270NoGibyE8W2rIBwRC4J/MD8q5dNm4Ek4PpwaeFgDglnYA8jIBxSYHUw6F4Y3bZvGaKM
AZS0c4Pr7ipf+Ef8JEAHxrEeOcWMhya5lZreMfJG5PqW6fpTWnkbPJOBwDziizA6geH/AAuu
3PipXUnlhbsMD1x/TrVe40Twwi5h8WROyjLK9u6nr0BwQTg+1c950uCARjpj0poZs/MARg8H
P9KVmJG8ul+HTgvryrngYhJyP8+1WV0fwkenicrkfxWzZH5dRXLEDJIIGPQcD8KQqO7E/oBT
tqM6tdF8LEZXxSWAHI+xsv8APr+FQvpOh5/d60Bg4y0ZBxnr2xXNbe4Y+nFBUHqzHH1phZnR
SaRoQVmbxLBlcfJ5LEnJ6cH/APVWD4ptbG1azFlqCXodWZ9iFdhBAxz1yOaiZAByT0zVTU1A
aEgggoM455xzn356UJAilRRRTKNLR5yZks3YhZG/cyKSDFJnhgewJwCB04I5HPrbXQutN0rX
9q7763NxNGqgbbiNzHLgdAGKq+OgLntXjNnkXUTg42NvyeBxzj25AHNd7D4itbHQtNsUYXXk
28hm2gqBJJIzMoLAZwoQZAIJJwcc1lUi2JHS+FdV0vR5PHnhrUtQistN1O2+12LzAlRMpEka
jGeSrFcDOduMdq57KyKsilJUJ6qcjJ9x6g4PvkZHNWVU3ll9tuvD9xf2Nsm17+GB8RxgAgNu
AJA3YzgEAA9CDUtv4Xll0O48S+Fma5t7RDJeW2SwaIYBI74APPcDJ7EVCfcfkVoREhJMjKFx
kDBOMjjnGSOQe2D78PuNs8QkaPy1BIO0jkjHAPc8kgg8j14xLJGLWSEklra6t47q3dxhmjcE
qT6kEMhxxlT2PE10tlPpjwSKsKEHKkgjI4znvgkj1IJ6HkMLWMG9sVkQkOr7wOFGCeOue5xy
COvIIOQK58j7GwSXc9sSQrAYKEjqP0OOhHIIrqJdyx4CrsbIBQ8gdeMYyOcjscnHWsa8QSrL
EzHhcknBwMZ49s84HsO4q4vuBkxEpYXkgILO0cR/3SGY/gSo/AYrO96t22XWSA5+dQQM/wAS
g8e5wTVRgVyOpHetBIjY5PsKSiigZ101i0F7cW0i7XhlaMqQeMHHP5UySCCMgkEEj8q1fEKm
3vppjqdpdyyMWYwMSCTz6DnFYU80nO7aQR+X+FZxvYncsfJGAVKE4J5Gciq7OXOCsfPcKBUA
kYgEOoIPAJyKd8xYHzosjnGe/pVjCZFAyQOOvGcVCxDDccZHHTqKsFpUjKeaCCcnB71Hh8gi
QD8cUrARIydCBkc1Kvl5BCjpnjmgRuxwHT05bFASVWxuAJ7k8UwJI9mCRED04IPWnhlHJiA7
9+lEUjIpDMvUZII5oeQFSFYHIAIJHWgBpKE5CgUnBGdqkjjvmmhjt5Iyff8ASms2RwRx15oa
EiTIH8C/jk0hcH/lmvpnB5pgYZ5wcj1oDDJAI496BjwQScIAc9BxUiFeAyDr271X3gZyc/rT
vMBySevvSYkTyeXggoAQfTNZusFQLeIIF2AknGCSQDz9MYq2Gyrncd2Bj0J/pxUWvxy7LK4k
IxLGyoAQSApA5HY5PfrQhox6fFG0sixoBvYgDcwUZ9ycAD3JplBAxgjIqhnonh7wpDLp11cW
1smr3aXEaw20N0m94ijF32ZySGCgA8+xBJFTxHb6dayLZRwrb3UBbfHMpViDtOCpxyCpGO4J
xkjniI2aOQSRsUkU5DodpB9QR0NfQHwV8T3mv2V3bai0d1faUEZZZUVy8TEgHkHBUgA4xkEd
8ky431JehFbfE6fUdIs7ez8OE31mWW2CTmO3EjKwyy/xgh2yBgEYDZwKytG1mT4d+DtY0aV9
2o6javbmIAEKHJySOxAJHr0Fe2a9odj4k0xrqWBFumBRnUAYkC/KeOgIGOOMg14V4Q8L2urz
eMLfUFuJfEGkw/a7NhITvCsVdSpyCeVIPUHGD6437jMiaWdrHSrKVdx06xWAg/wMzvIVOeuD
IV9AQR2qFpAVwGJPBw/GeMc+2CQR3PWjHBfGSeSwPBJ/n0zn2NRNkksCJRjHI55/oc+/P0qk
BVkYRyZIKt1BOSB/jjJH0pkjbmLqNxHHIAJ46dTnrx7fjiS4IDBgST7gnn1/Qio3wwyVBwM9
MEEf1B/SqVxMwruMw3RMfAJDx8cZHIwPTORUN2q7lkjHySqGGBjGc8fgQR+Va19AbiIFCN6Z
K9AQOuPzOfz4yeMsEuhiIAySyjHQ/wAQ9uADj1q07oaKHt6UU91OcgfWmUxmkzMGYknJPf8A
lTWkZuCSa09bs1t9YvYrZGmt0nfy5FOQy54Ix1644qobaXIAgck9l5/DpxUroBU596DnqKuG
yuucWU/XshP9KctjeEYFjcntwhOf0qtRFHLY4J5oy3TJrQGm6gemmXZ7cRkj+VKNL1PnGk33
AzxExOOOenvRZgZoz3p+4dCCR7E1c+w33OdNvcZ/54sfw6UCwvScHT7tcA5PkNwfyoswuiur
RbTuRi2MZ3Y5/wA9qYWGcqD64JyasPbXCHDWk6k5wCjAn9OaDDcgAi1nHb/Vtz+lJJgQbm7D
NKN3pUhWcHJtZs/9c2z9elBd0YrKphIGcTDZ+HIHPtTsBF83cGj5hzz+VONyM4EkRPswOaX7
SSOJFP4g0hjPmJ4Bx9M0YbHU5Psad9ok6FjwPekWWV0kkRXKRgF2VSQmSByQMAEkAZxk8Dmg
BuGBxk9e4pmoLJ5du7KQrAhTjGcYBx68+lON0TkmQE/WmX9yZ4beMyF1hDbc/wAOSCR+YoVw
KdFFFMArt/gzrC6N8RNMeZ9ltelrKYnoRINq59g4U89MVxFKrOjK8bFHUhlYHBDA5z7HIBoQ
NH3DpEgL3NoCGZoyVAIOXQ7h+JXcPxFePPeRaF8cbHUJwI7LUma0uQTgFJF2HP0JU59s13/h
HWxqWlaP4giwxuYY5pFXI+ccOv5hh+Fcd8dPDoSzk1O0LZtZg4I7KSMH8ipz9Kwa1sQjhfEV
gNJ1/UdLYsotZ2RdwxgZ4+vBB/PHasmcsUfCARKoBYgjJyOh+pJ9gMZ4rsfH8x1RNE8VJnGr
WSGcnnEyja4z65B469fauRlC7MMCmAeMZJ9fx6cenbpQmWVJyjKSCAQMBMkjg9/XgZ4/SoYS
CAAeCVznkk55/mM56cVdmtypIKocAjC4545A9Dg5/OqLKqOQoAOe46n1/XP1qkIbtG5S4G1u
pzyBz/I5/KsjUoGhu2CgjcdynkYYd/oR69etasoxhsEEnJb1Pr7dCPwqK+ia6tsgkyIBjJOe
MAD8OB64PsapPUDCmAJDqMKwyPb2/A5FV2+9x3qyeRjGA3IHoR1H8jUDg9e4qxnYR6HFLL5c
Wr2DKSNrbn5B6HG3IH1H4Vr2HgVLpRI/iLT1BB+WOKZz34yEAB4rm2jMOqTWNzPEDBM0Luh8
xCVYglSPvAkZBHBGD3r1jwrp2lvZQ+Zq8QIGCfsQJB99xGf0rFtrYT3E8K+BNKt7hJZrWy1P
BGEuDIqt9QUwR9eM16RrPhPw7qGlqr+BPDsLqMedA5jckDrlYwSMDP8ALFJpEGkxbRHfPLx/
BaoADn2PFdLE9m0axs0oGP8AngprJykCPHr7wPpEjyBdLsYSTjClznr/ALHB7Z4zxzWanw40
tmySsfIJwWwAe2NnXH4dc169eQaR5jl75oyDwDax4OccdPUVWSPSBx/aBYZ5zboAffjGP88U
1KQHl6/DPTiSRqIUA4G0ucfmtNk+GVuTiPVgo7FVc5/lXq7HRgoAvgCBxm3yT+TD8qf5ukhC
DfIMDj9yQR/49QpSA8k/4VW8gQr4hEZJ6Yk49c46cCpB8J7zaRF4lUHIOWMoxx7GvWUuNJGM
XqZIOR5LHJ/76qfz9I27TexqpGMGFzxz/tc0+aQrnmvh34SXUOowz6prB1G0DAtbxzTJ5i8n
G4EEZGOR0/DnY8YfCvS7xg+iNJoiEAFJrqa4BPPI3Nx9BXpFhqulpLCBMjoAoGFYAgD6HAwM
9+O5pPFWu6YtthCATzuCOePwU47U+Zgj58vPhIsJY3Xi5HIydsNkzE/99OO3GT3rmbHR9M03
xrpFpbyy6lKl9FviuVRI3IcfIwG7IbgYBPXvXoPirW7fyLgrLI/y4wsLgkZwRkqADweTxXi0
epzWuqwahbuySW1yk0ZIBIKsCMg8E8Drmrjd6Aerav4rjj0qS/tfDWjpPFMVkh8lgNpyVdeQ
cHlSD0Kkc8Vw2p+JpNStL+GLT7LThfQiK4W0V1WRVdXAIJIJyuOQAM5yMDHX6BNpmqrruo6x
blLa7MzxtwpjIZnCgDA6uT69e5NeWvNMVIjYx45BHBH/ANfjrSghsxfUnpTQyngEH6VtWNut
syOywyXBTzP3qh0jB6DaQQTgg85AyO9dVrV/rGj22nXVj4juLi1mXmWAtb+RID9wx7QVwMEM
Mgg5ByCBrewX1KHhO48NQ6WF1Dw1HqV0zEvPPdunc4CqoAAxjqSScnjgDXkvfCIjJXwVZg5x
g3cpC+55BxisO4a7uLz/AE27LyqCC7Nvz3BB7g5zkcYNVgwkd2BBAYKgYcFieCfYAE4PWocU
9RXZ1Nu/ha4baPBUU8cg2iO1mlDEn0bJIPGcAEYrCvfDmhSXz20WpXegXAJAttYt2dVPp5ka
7hwR96MEepzVu18VahoJA064l08sCA1qiCaUBiC7SMpwCQQFUEHHYAZv6h40vfEmmvZ65MdU
hVgFe5jQTWzMMBkdAoZSQARgEHGcg8paaoq7tqeg/B5bzT/D13ol7JBcLaXBmtbm1mWWKWN+
WCsDwQwYlWAIDDIFeheIYYtT8NvFMA6zQNbyA8kkDC/+Oke/FfK+iahf6VqXmWMriaE7wAcb
1ByVYdxgEcjg8ivprSrwar4Onu4GBR44blec7QwKkZ+rAfUUprW4meSaHG958PtX0ecD7boF
406owUFY2B34z0wVIwOpYAda5okquC2zHOCOfTOe+Dx9K6e0aTTPidNaJiKLWYGgXLlQzMuF
JJ5B3qOe2a5q4iktZ7i0fCyQOUbeMDIJHft1Ge4OfU0gISxAxtHGcsOT1H68547GoJ1Zt0i4
kVcBiQBgk9PfoTx0+mK6Twt4ak8RXk9tBdC08iIzvM8LyKBnAACjk5ByTjgj6jJ13R7vRb6S
1u5bS8iIHlz20qknnoyZ3Kc9iBxkA0KSvYrlZlSKDzzkc4xwfp6cAfiKZEFJwy7lPBI6HP8A
iOKmk+6Rk4GQFPGD3/Hv757VWUjzMYIB7c+nX6d6u5NjLv4THcMFOdx3K3qw9frnHpnIHSqL
gZyOhAIHt/nitvWFLQpKFACnGQM55GCT+PT61jSYwQOgY49gef61aegI3dIshJ5Ujh23BXTa
QMDsSNpweOleh2F5qCqgU3fQAgEqT/3wi8c15atzqNvgRTzQqo+VUYjaM9OMcdeD0pG1bU8j
df3JPQEyMT/Os3G42j3nTry8YjzRdEZ/jMxA/JhzW6l/GAVMEu4ADJMwJGD/ALfX6182Lqmr
5BW7ueP9sj+tOOpau2CbifdnG7zMZHvzzU+zA+iXv7gOdkV1zyNrzgEf99nH4VGdUvMYMd9x
n+Of3/2/evn0alq6jJu7kc9pj0/766Uqanqwzuvbpj2Bn47/AO1S9m0B79/al5yAt9g5GN85
x/4/zUbX11yVW9POekvPHu/SvBW1PVmPN9c56/67GP8Ax7j8KBqmr8D+0L3g9p+n/j1P2b7i
PeY9Qujj5LoAEZ/1mD6D7386JL695Kpd9D/z0OD2Od3X35/nXhP9q6tuOy/vQCOc3BOfx3Dv
2p39r6vzjUb5eAMLckD/ANCo9mwPoe31KRbaFnLJNgZDghgcYyfyzmkvNZllXyxISBxwCM18
9prerJwbu7mGeRJdMBj8Hpt5rWrTvlJ3tEwBtW6cgkd+WJz+n0p8jFbU9h1XM2FcZjIJPBOe
v6814/rlvDFrJjAeOBnG6Qryozy2McgcnH4VSafUZ8CTVZP+B3D4H86Y1jJJkteQMT6ykk/m
BTjGz1ZSRu6hfmO2uIILlXtGmwiow+cD+LrkAjBweexGRiqXlWqaZJfyXoWVGCpbBNzNnHzH
sFAP1z2xzVGK2lt+Y3gLcHcpVj+BPT8MVJZXMAvIjqcS3UKHJglLKjnOcMVIYA+oIPuKpIRV
t52lCsJlinjAxk7dwGBx6npkde/PNWZLm4ukjS9m82OJshBgAg56sOR0A46jPSsUZ6HmirA6
mJTcKHjkQuo5TgYHAGP5eg9ahuGdVIjAB3q2VwcEZ569ee3HFVNNNuLaMm5VXJO8FSrJyccn
hgQQSBggjHHew0kO3Yrwgqcl1c4f6g9B9AD61NhW1Os0weDNctEtdf1N9MuYS3kzxo52qedu
Qr7lJJbawUqSSGIIAytaXw7pai20O+N/GXV5ZnDAysv3V5RQqgnOACSepIAAwJkjzkTwuQBy
Wwc+gB688e/pVJ7hVJCgPz2GAKSjrcq+hsaFaXuqaxFa2ilru7fy19FB+8x9ABk5PQV9N6Ha
RaX4W1CxgBWKC2ihQgck+YvPPc4J5r5n8CeIRoPiqy1G6ZltEDxzCNclVZSN2O5BIPrgHFe2
2vxG8IXeiajYSeIkt3nhzA8sMq4kUgqGwhwCMjOSOc0SWl0S9zivifIU1O0vrYss9k6kOCM5
BDZBHfIH0OeoqPxzcWUmupqtpJbiPVLdLvyw4BR2GCMdhkE8+uelZWpTpqUzWzXCiacbow+U
DDBIYFgAQVGQTwR0zkVzsunw7yTq1nyBn5iSBjpxnoB0qEu4zRa6OT5d0ASAPlkC4zjuMdgM
+4BPSqvyK7OHXc55YvuLdeSScnqRz2/GqZs4hwL61cA4zuI/HkU77EpXJ1CyBA6GXn+VPQep
aZxjJdcEDkEc9f5H9KRQdwG5cE4wSBjnn/J7VSmsxGxU31m5UgZWbIJ9iBg/hUa2jTMscM8E
znJKI+SoAyWPHAABJIzgDNUIsasyi1RVclpCcAEEEAjr3ByAfQ5NZUpGSQc5Y49MAAZ/SrL2
+0AC5tyTyMPnB9+OD+lUmyQAASqjGe31PvmqWwz/2Q==</binary></Content>
						<Vector3 name="VertexColor">
							<X>26</X>
							<Y>26</Y>
							<Z>26</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX76">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<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">Weld</string>
						<Ref name="Part0">RBX73</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Script" referent="RBX77">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">PaintballShooter</string>
					<string name="Source">Tool = script.Parent

colors = {26,}

function fire(v)

	Tool.Handle.Fire:play()
	

	local vCharacter = Tool.Parent
	local vPlayer = game.Players:playerFromCharacter(vCharacter)

	local missile = Instance.new(&quot;Part&quot;)

        

	local spawnPos = vCharacter.PrimaryPart.Position
	


	spawnPos  = spawnPos + (v * 8)

	missile.Position = spawnPos
	missile.Size = Vector3.new(1,1,1)
	missile.Velocity = v * 480
	missile.BrickColor = BrickColor.new(colors[math.random(1, #colors)])
	missile.Shape = 0.5
	missile.BottomSurface = 0
	missile.TopSurface = 0
	missile.Name = &quot;Paintball&quot;
	missile.Elasticity = 0
	missile.Reflectance = .1
	missile.Friction = .3

	local force = Instance.new(&quot;BodyForce&quot;)
	force.force = Vector3.new(0,100,0)
	force.Parent = missile
	
	Tool.BrickCleanup:clone().Parent = missile

	local new_script = script.Parent.Paintball:clone()
	new_script.Disabled = false
	new_script.Parent = missile

	local creator_tag = Instance.new(&quot;ObjectValue&quot;)
	creator_tag.Value = vPlayer
	creator_tag.Name = &quot;creator&quot;
	creator_tag.Parent = missile
	


	missile.Parent = game.Workspace

end



Tool.Enabled = true
function onActivated()

	if not Tool.Enabled then
		return
	end

	Tool.Enabled = false
	local character = Tool.Parent;
	local humanoid = character.Humanoid
	if humanoid == nil then
		print(&quot;Humanoid not found&quot;)
		return 
	end

	local targetPos = humanoid.TargetPoint
	local lookAt = (targetPos - character.Head.Position).unit

	fire(lookAt)

	wait(.2)

	Tool.Enabled = true
end


script.Parent.Activated:connect(onActivated)

</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX78">
				<Properties>
					<bool name="Disabled">true</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Paintball</string>
					<string name="Source">ball = script.Parent
damage = 30



function onTouched(hit)
	local humanoid = hit.Parent:findFirstChild(&quot;Humanoid&quot;)
	

	if humanoid ~= nil then
		tagHumanoid(humanoid)
		humanoid.Health = humanoid.Health - damage
		wait(2)
		untagHumanoid(humanoid)
	end

	connection:disconnect()
	ball.Parent = nil
end

function tagHumanoid(humanoid)
	-- todo: make tag expire
	local tag = ball:findFirstChild(&quot;creator&quot;)
	if tag ~= nil then
		local new_tag = tag:clone()
		new_tag.Parent = humanoid
	end
end


function untagHumanoid(humanoid)
	if humanoid ~= nil then
		local tag = humanoid:findFirstChild(&quot;creator&quot;)
		if tag ~= nil then
			tag.Parent = nil
		end
	end
end

connection = ball.Touched:connect(onTouched)

wait(1)
ball.Parent = nil</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX79">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">WeldScript</string>
					<string name="Source">local w1 = Instance.new(&quot;Weld&quot;)

w1.Parent = script.Parent.Handle
w1.Part0 = w1.Parent
w1.Part1 = script.Parent.Handle2
w1.C1 = CFrame.new(3, 0, 0)</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX80">
				<Properties>
					<bool name="Disabled">true</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">BrickCleanup</string>
					<string name="Source">-- this script removes its parent from the workspace after 24 seconds

wait(1)
script.Parent.Parent = nil</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX81">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">armmove</string>
					<string name="Source">--Stickmasterluke

--just put this script under the tool and when weilded the left arm will go up aswell.
tool=script.Parent
while true do
	if tool.Parent.Parent.Name==&quot;Workspace&quot; then
		local la=tool.Parent:FindFirstChild(&quot;Left Arm&quot;)
		local ra=tool.Parent:FindFirstChild(&quot;Left Arm&quot;)
		local ts=tool.Parent:FindFirstChild(&quot;Torso&quot;)
		if la~=nil and ts~=nil and ra~=nil then
			local ls=ts:FindFirstChild(&quot;Left Shoulder&quot;)
			local rs=ts:FindFirstChild(&quot;Right Shoulder&quot;)
			if ls~=nil and rs~=nil then
				ls.CurrentAngle=rs.CurrentAngle*-1
				ls.MaxVelocity=0
			end
		end
	end
wait(.02)  --If arm looks glitchy, then make this number smaller. And avoid setting to 0(game will crash).
end	</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="LocalScript" referent="RBX82">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Local Gui</string>
					<string name="Source">local Tool = script.Parent;

enabled = true
function onButton1Down(mouse)
	if not enabled then
		return
	end

	enabled = false
	mouse.Icon = &quot;rbxasset://textures\\GunWaitCursor.png&quot;

	wait(.2)
	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	enabled = true

end

function onEquippedLocal(mouse)

	if mouse == nil then
		print(&quot;Mouse not found&quot;)
		return 
	end

	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end


Tool.Equipped:connect(onEquippedLocal)
</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
		</Item>
		<Item class="Tool" referent="RBX83">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">2</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<X>-1</X>
					<Y>-0.75</Y>
					<Z>0.25</Z>
					<R00>0</R00>
					<R01>0</R01>
					<R02>1</R02>
					<R10>0</R10>
					<R11>1</R11>
					<R12>-0</R12>
					<R20>-1</R20>
					<R21>0</R21>
					<R22>-0</R22>
				</CoordinateFrame>
				<string name="Name">LinkedRocketLauncher</string>
				<Content name="TextureId"><url>rbxasset://Textures\Rocket.png</url></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Script" referent="RBX84">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><url>http://www.roblox.com/asset/?id=1014654</url></Content>
					<string name="Name">Server Launcher</string>
					<string name="Source"></string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX85">
				<Properties>
					<bool name="Disabled">true</bool>
					<Content name="LinkedSource"><url>http://www.roblox.com/asset/?id=1014655</url></Content>
					<string name="Name">RocketScript</string>
					<string name="Source"></string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Sound" referent="RBX86">
				<Properties>
					<bool name="Looped">false</bool>
					<string name="Name">Explosion</string>
					<int name="PlayCount">0</int>
					<bool name="PlayOnRemove">false</bool>
					<Content name="SoundId"><url>rbxasset://sounds\collide.wav</url></Content>
					<float name="Volume">1</float>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Sound" referent="RBX87">
				<Properties>
					<bool name="Looped">true</bool>
					<string name="Name">Swoosh</string>
					<int name="PlayCount">-1</int>
					<bool name="PlayOnRemove">false</bool>
					<Content name="SoundId"><url>rbxasset://sounds\Rocket whoosh 01.wav</url></Content>
					<float name="Volume">0.699999988</float>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Part" referent="RBX88">
				<Properties>
					<bool name="Anchored">false</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">199</int>
					<CoordinateFrame name="CFrame">
						<X>17.5536118</X>
						<Y>0.893160999</Y>
						<Z>32.2527122</Z>
						<R00>-0.092663832</R00>
						<R01>-0.995697439</R01>
						<R02>-0.000203113101</R02>
						<R10>3.87514956e-005</R10>
						<R11>-0.000207593301</R11>
						<R12>0.99999994</R12>
						<R20>-0.995697439</R20>
						<R21>0.0926638022</R21>
						<R22>5.78216204e-005</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">false</bool>
					<string name="Name">Handle</string>
					<float name="Reflectance">0.400000006</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">0</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>4</X>
						<Y>0.800000012</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX89">
					<Properties>
						<Content name="MeshId"><url>rbxasset://fonts/rocketlauncher.mesh</url></Content>
						<token name="MeshType">5</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.75</X>
							<Y>0.75</Y>
							<Z>0.75</Z>
						</Vector3>
						<Content name="TextureId"><url>rbxasset://textures/rocketlaunchertex.png</url></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="LocalScript" referent="RBX90">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><url>http://www.roblox.com/asset/?id=1014653</url></Content>
					<string name="Name">Local Gui</string>
					<string name="Source"></string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
		</Item>
		<Item class="Tool" referent="RBX91">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">2</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<X>0</X>
					<Y>0</Y>
					<Z>0</Z>
					<R00>1</R00>
					<R01>0</R01>
					<R02>0</R02>
					<R10>0</R10>
					<R11>0</R11>
					<R12>-1</R12>
					<R20>-0</R20>
					<R21>1</R21>
					<R22>0</R22>
				</CoordinateFrame>
				<string name="Name">LinkedTimebomb</string>
				<Content name="TextureId"><url>rbxasset://Textures\Bomb.png</url></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Part" referent="RBX92">
				<Properties>
					<bool name="Anchored">false</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">194</int>
					<CoordinateFrame name="CFrame">
						<X>15.1194754</X>
						<Y>1.38896239</Y>
						<Z>35.3904762</Z>
						<R00>-0.0180459954</R00>
						<R01>-0.755457997</R01>
						<R02>0.654948413</R02>
						<R10>-0.940416694</R10>
						<R11>-0.209631786</R11>
						<R12>-0.267713964</R12>
						<R20>0.339544743</R20>
						<R21>-0.620755672</R21>
						<R22>-0.706662297</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">0</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">false</bool>
					<string name="Name">Handle</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">0</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">0</token>
					<Vector3 name="size">
						<X>2</X>
						<Y>2</Y>
						<Z>2</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX93">
					<Properties>
						<Content name="MeshId"><url>rbxasset://fonts/timebomb.mesh</url></Content>
						<token name="MeshType">5</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><url>rbxasset://textures/bombtex.png</url></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="LocalScript" referent="RBX94">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><url>http://www.roblox.com/asset/?id=1014617</url></Content>
					<string name="Name">Local Gui</string>
					<string name="Source"></string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX95">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><url>http://www.roblox.com/asset/?id=1014618</url></Content>
					<string name="Name">PlantBomb</string>
					<string name="Source"></string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX96">
				<Properties>
					<bool name="Disabled">true</bool>
					<Content name="LinkedSource"><url>http://www.roblox.com/asset/?id=1014616</url></Content>
					<string name="Name">Bomb</string>
					<string name="Source"></string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
		</Item>
		<Item class="Tool" referent="RBX97">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">2</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<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">LightSaber(Blue)</string>
				<Content name="TextureId"><null></null></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Script" referent="RBX98">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Sword Script</string>
					<string name="Source">-------- OMG HAX

r = game:service(&quot;RunService&quot;)


local damage = 40


local slash_damage = 34

sword = script.Parent.Handle
Tool = script.Parent


local SlashSound = Instance.new(&quot;Sound&quot;)
SlashSound.SoundId = &quot;rbxasset://sounds\\swordslash.wav&quot;
SlashSound.Parent = sword
SlashSound.Volume = .7

local UnsheathSound = Instance.new(&quot;Sound&quot;)
UnsheathSound.SoundId = &quot;rbxasset://sounds\\unsheath.wav&quot;
UnsheathSound.Parent = sword
UnsheathSound.Volume = 1



function blow(hit)
	local humanoid = hit.Parent:findFirstChild(&quot;Humanoid&quot;)
	local vCharacter = Tool.Parent
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
	local hum = vCharacter:findFirstChild(&quot;Humanoid&quot;) -- non-nil if tool held by a character
	if humanoid~=nil and humanoid ~= hum and hum ~= nil then
		print(&quot;SWORD HIT&quot;)
		tagHumanoid(humanoid, vPlayer)
		humanoid:TakeDamage(damage)
		wait(1)
		untagHumanoid(humanoid)
	end
end


function tagHumanoid(humanoid, player)
	local creator_tag = Instance.new(&quot;ObjectValue&quot;)
	creator_tag.Value = player
	creator_tag.Name = &quot;creator&quot;
	creator_tag.Parent = humanoid
end

function untagHumanoid(humanoid)
	if humanoid ~= nil then
		local tag = humanoid:findFirstChild(&quot;creator&quot;)
		if tag ~= nil then
			tag.Parent = nil
		end
	end
end


function attack()
	damage = slash_damage
	SlashSound:play()
	local anim = Instance.new(&quot;StringValue&quot;)
	anim.Name = &quot;toolanim&quot;
	anim.Value = &quot;Slash&quot;
	anim.Parent = Tool
end


function swordUp()
	Tool.GripForward = Vector3.new(-1.1,0,0)
	Tool.GripRight = Vector3.new(0,1,0)
	Tool.GripUp = Vector3.new(0,0,1)
end

function swordOut()
	Tool.GripForward = Vector3.new(0,0,1)
	Tool.GripRight = Vector3.new(0,-1,0)
	Tool.GripUp = Vector3.new(-1,0,0)
end

function swordAcross()
	-- parry
end


Tool.Enabled = true
local last_attack = 0
function onActivated()

	if not Tool.Enabled then
		return
	end

	Tool.Enabled = false

	local character = Tool.Parent;
	local humanoid = character.Humanoid
	if humanoid == nil then
		print(&quot;Humanoid not found&quot;)
		return 
	end

	t = r.Stepped:wait()
	attack()
	last_attack = t

	--wait(.5)

	Tool.Enabled = true
end


function onEquipped()
	UnsheathSound:play()
end


script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)


connection = sword.Touched:connect(blow)


</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX99">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">WeldScript</string>
					<string name="Source">function Weldnow()
	local w1 = Instance.new(&quot;Weld&quot;)
	w1.Parent = script.Parent.Handle
	w1.Part0 = w1.Parent
	w1.Part1 = script.Parent.Handle2
	w1.C1 = CFrame.new(0, -.45, 0)
		
	local w2 = Instance.new(&quot;Weld&quot;)
	w2.Parent = script.Parent.Handle
	w2.Part0 = w1.Parent
	w2.Part1 = script.Parent.Handle3
	w2.C1 = CFrame.fromEulerAnglesXYZ(0, -4.715, 0) * CFrame.new(0, -2, 0)

	local w3 = Instance.new(&quot;Weld&quot;)
	w3.Parent = script.Parent.Handle
	w3.Part0 = w1.Parent
	w3.Part1 = script.Parent.Handle4
	w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 9.43) * CFrame.new(0, .45, 0)
end

script.Parent.Equipped:connect(Weldnow)
script.Parent.Unequipped:connect(Weldnow)

do
	local w1 = Instance.new(&quot;Weld&quot;)
	w1.Parent = script.Parent.Handle
	w1.Part0 = w1.Parent
	w1.Part1 = script.Parent.Handle2
	w1.C1 = CFrame.new(0, -.45, 0)
		
	local w2 = Instance.new(&quot;Weld&quot;)
	w2.Parent = script.Parent.Handle
	w2.Part0 = w1.Parent
	w2.Part1 = script.Parent.Handle3
	w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, -2, 0)

	local w3 = Instance.new(&quot;Weld&quot;)
	w3.Parent = script.Parent.Handle
	w3.Part0 = w1.Parent
	w3.Part1 = script.Parent.Handle4
	w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 9.43) * CFrame.new(0, .55, 0)

	local w4 = Instance.new(&quot;Weld&quot;)
	w4.Parent = script.Parent.Handle
	w4.Part0 = w1.Parent
	w4.Part1 = script.Parent.Handle5
	w4.C1 = CFrame.fromEulerAnglesXYZ(-4.715, -4.715, 0) * CFrame.new(.4, -.3, 0)

	local w5 = Instance.new(&quot;Weld&quot;)
	w5.Parent = script.Parent.Handle
	w5.Part0 = w1.Parent
	w5.Part1 = script.Parent.Handle6
	w5.C1 = CFrame.fromEulerAnglesXYZ(-4.715, 4.715, 0) * CFrame.new(-.4, -.3, 0)
end
</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="LocalScript" referent="RBX100">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">LocalScript</string>
					<string name="Source">local Tool = script.Parent;

enabled = true
function onButton1Down(mouse)
	if not enabled then
		return
	end

	enabled = false
	mouse.Icon = &quot;rbxasset://textures\\GunWaitCursor.png&quot;

	wait(.5)
	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	enabled = true

end

function onEquippedLocal(mouse)

	if mouse == nil then
		print(&quot;Mouse not found&quot;)
		return 
	end

	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)

	local g = script.Parent:GetChildren()
	for i=1, #g do
		if g[i].className == &quot;Part&quot; then
			g[i].CanCollide = false
		end
	end
end


Tool.Equipped:connect(onEquippedLocal)

function onUnequippedLocal(mouse)
	local g = script.Parent:GetChildren()
	for i=1, #g do
		if g[i].className == &quot;Part&quot; then
			g[i].CanCollide = true
		end
	end
end

Tool.Unequipped:connect(onUnequippedLocal)</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Part" referent="RBX101">
				<Properties>
					<bool name="Anchored">false</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">23</int>
					<CoordinateFrame name="CFrame">
						<X>9.12232399</X>
						<Y>0.958546519</Y>
						<Z>34.8065186</Z>
						<R00>0.0259863492</R00>
						<R01>0.975562215</R01>
						<R02>0.218181178</R02>
						<R10>0.999657214</R10>
						<R11>-0.0260533206</R11>
						<R12>-0.00256995042</R12>
						<R20>0.00317720836</R20>
						<R21>0.218173176</R21>
						<R22>-0.975904822</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">0</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">false</bool>
					<string name="Name">Handle3</string>
					<float name="Reflectance">0.25</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.25</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>1</X>
						<Y>5</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX102">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.400000006</X>
							<Y>1</Y>
							<Z>0.400000006</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Script" referent="RBX103">
					<Properties>
						<bool name="Disabled">false</bool>
						<Content name="LinkedSource"><null></null></Content>
						<string name="Name">Script</string>
						<string name="Source">--By Wirodeu, for socom1880

function onTouch(hit)
	if hit.Parent:findFirstChild(&quot;Humanoid&quot;) ~= nil then --Check if whatever touched the lava is a player
		hit.Parent:BreakJoints() --Remove snaps of player so he falls apart and dies! :)
	end
end

script.Parent.Touched:connect(onTouch)</string>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX104">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>6.63464069</X>
						<Y>1.02498245</Y>
						<Z>34.2501755</Z>
						<R00>-0.0208912957</R00>
						<R01>-0.975684583</R01>
						<R02>0.218181178</R02>
						<R10>-0.999779642</R10>
						<R11>0.0208324343</R11>
						<R12>-0.00256995042</R12>
						<R20>-0.00203779479</R20>
						<R21>-0.218186796</R21>
						<R22>-0.975904822</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">false</bool>
					<string name="Name">Handle4</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX105">
					<Properties>
						<Content name="MeshId"><url>http://www.roblox.com/asset/?id=1778999</url></Content>
						<token name="MeshType">5</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.400000006</X>
							<Y>0.200000003</Y>
							<Z>0.400000006</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX106">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>7.45347404</X>
						<Y>0.602974236</Y>
						<Z>34.4343529</Z>
						<R00>0.218248293</R00>
						<R01>0.0279638246</R01>
						<R02>0.975492537</R02>
						<R10>4.03323647e-005</R10>
						<R11>0.999589086</R11>
						<R12>-0.0286635142</R12>
						<R20>-0.975893199</R20>
						<R21>0.00629511755</R21>
						<R22>0.218157485</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">false</bool>
					<string name="Name">Handle5</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX107">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX108">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>7.47426319</X>
						<Y>1.40270007</Y>
						<Z>34.4368935</Z>
						<R00>-0.218112588</R00>
						<R01>-0.0240085199</R01>
						<R02>0.975628257</R02>
						<R10>0.00518021593</R10>
						<R11>-0.999711752</R11>
						<R12>-0.0234429836</R12>
						<R20>0.975909829</R20>
						<R21>-5.92558026e-005</R21>
						<R22>0.21817407</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">false</bool>
					<string name="Name">Handle6</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX109">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX110">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>7.61020279</X>
						<Y>0.998929143</Y>
						<Z>34.4683495</Z>
						<R00>0.0259863492</R00>
						<R01>0.975562215</R01>
						<R02>0.218181178</R02>
						<R10>0.999657214</R10>
						<R11>-0.0260533206</R11>
						<R12>-0.00256995042</R12>
						<R20>0.00317720836</R20>
						<R21>0.218173176</R21>
						<R22>-0.975904822</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">false</bool>
					<string name="Name">Handle2</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX111">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">6</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX112">
				<Properties>
					<bool name="Anchored">false</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">199</int>
					<CoordinateFrame name="CFrame">
						<X>7.1711998</X>
						<Y>1.01065314</Y>
						<Z>34.3701706</Z>
						<R00>0.0259863492</R00>
						<R01>0.975562215</R01>
						<R02>0.218181178</R02>
						<R10>0.999657214</R10>
						<R11>-0.0260533206</R11>
						<R12>-0.00256995042</R12>
						<R20>0.00317720836</R20>
						<R21>0.218173176</R21>
						<R22>-0.975904822</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">0</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">false</bool>
					<string name="Name">Handle</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">0</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>1</X>
						<Y>1</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX113">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>-1.10000002</Y>
							<Z>-0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX114">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX115">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2.5999999</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX116">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX117">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX118">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2.5999999</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX119">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX120">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>0.999996603</R02>
							<R10>0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>-0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX121">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>-0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>-0.999996603</R02>
							<R10>-0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX122">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">4</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><binary>UklGRiSvAABXQVZFZm10IBAAAAABAAEAIlYAAESsAAACABAAZGF0YQCvAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAARACMAKABBAEMAOgAyADQAOAAyADgAMwAxAC4ALwAtACoAKwAoACgA
JAAiAB0AHwAeABsAGQAYABwAHQAeAB8AIQAeAB0AHQAeAB4AIQAjACcALgAvACwALgAyADQA
NgA0ADIALQApACYAKQA0ADEAMQAwADEAOQA7AEMAPwA9AEgAVwBeAFsAagBuAGMAUQBPAD4A
9v98/yT/kAAxAR/++//PAF4AsgFHAOcAPwCHAtUAVgHVAjsAZQIpAHUAzQD3/4z/4P8/AbIB
2QJLASoBRgJ/Ap8BUf/w/cL/hwAFABn9Df+HAL7+Fv6Z++3/Df0P/RX/oft9+4n/GAHd/sgC
IPoJ/doBofx1AcMCuQMAAsH8FvrEAYgC//2VAIwBWwQN/i75NwSMBEf9+P2RAEMBYf1J/7kE
YAB2/R8CJQLIA6T+hPz+Au7+PPsCBE0LvwBl/pYE9ATcA+sEQAawA1MBovz8AwcKNQVcBpMG
5ATs/NkAUQpPCAP9zvRKAFAC5/6x+pLzDPHp97/7Ef/VAPDnq+av/dX/ePUI72P5aPvu87P8
4v3n+nP6tfgJ/PMB5/sR/bEEfAdoBnT8LA2TEBAGcfnx9ewEHwAP/XcCRP1u/FMD2wA2//D2
8wPL/9D5Jgbu+FQClwhsAXP/UQ6BDyz3h+6+BegJe/6FCBv33AIrBZcBqgc2AIUPZwMZ+YH5
pQSUAb38hgcAAD8BOvZq9y4Dofod/m/9CvLd968QwRVc+WXfoeoMC+P4mOsh5+jnURFYGJoO
I/WHDKUY3OFm92MPchB3HvIWkPhw+morwyLx9j3iCvbBGQYJ6Oe64s4ExhfGEh8J7t7w7CwS
TwquAjQL2hf1C8IPoCV7Hl0cPxveCZ0IfQ2bG/IV6wnWDyUJ2voC9FMLsxRE/7LzCxfLCzPU
PuUZ7LzvmPzp/fwCNgleIlMN3+177zz3CwuICWr47PFe8uvxyv5lASfcetvk94n6qgAXHyoV
FOr5+PQCae8Q5pv1KObI5akS9AwnCzL5IAJ/F4IROhK09xMBPxT593PUv+05HW0XH/l44l3k
jwtaER79rAxODxYUtRjED8oHOPiQ47vNatWE+zkWGvlC3iLvyfVM4X3HmtQT5Yvma+8k82P8
6AOSEScphTgDKXYLwwy1I9MzJS2+CyYDrxT1GU42iS8iBe4YmSwAI4FCjkR8KJQ74jiXM2c/
N0ChI2AXND2IOuIqSCE1FtIKwBcmEcXlmuKG60Pw0OGO4MLXjd2a7xzbf8nbvHbHM9JN2Hzg
ees17E7mLud925vbBuSi5TfoduqR7KDxFfJv8Qz5E/3w/+oXUicjJ30q1yqLJ8Uamwr7AXcU
bx4YBUb3uv/7/UnuT+Or0Si+zb+fx/PA0saS1efeKOg05kHlYe4N+zj1fOj55gbt/fj59jDq
BuXu5ETdetPY00rSKM9+y6vFJsoRz4XY5NCby53UsdC32evkcvEd8tjtJent5UruUe30+60J
vQ+HD8oWbSqiHkgKywXdCoEEePYq7LfjUOwq9V/tKedX7MrwI/gw+IjwrPk3BnADRgCIBmT9
LgBsILorKR1YFZQcSRtKEdMGnve46G3XiM/ux6HFutnZ4IDhueK52pfaPOU+7WzvrfuXAc0L
5R3bIGUhOR58H3YhwCSQIk4VBhMnCTP7sfMN8Uv2uvr5+wgCTA6wFo0eESDOHpcfBSAqIhAl
DChAKa0tljIkNqg1Fy7LHu0IW/Bz2XXFdrk5vXrIfdXj4NHn0O2u9Zr/Sgk1EfEXyB0LJlIy
7jd2PbJKp1AzUVxTjFEAS/4w+wpt+MDvn+yq838B7Q5JFaIboSOALEoxTznoQj1HIENdPLc/
1js6ODA+fT0zQSdSEl13WWhLAinZ/5fnVdcs0dnZ5up999n+LBK2Il0k4yG1IAAjPCTPIhks
tDK4MkA7+zZtMtg7JkCeRm5K7De2FMHqHsbFsjWvL73C2szspu/6+TYEqAy8EnYUDBPNEo0W
cRLLEdkXMxp0GdQgZCsNLRQ2lD2qLuUJfdaurHqaY5yurvjJd93k3dXCVLfuzOvRFOUM7U3S
ztmk7/363wtPIhQwOCnHJvUmFyftJjwOyNCfkayK3Id6ga6G9ZDuoGWtZ77qoZDBWP4q5tne
ntrVzVnl4vGj2l3iifFe+eAJywlCGQUsMDXvMPkNPNMpuLuiTZx2wuvXdOp56m/dvu5RAP0K
VB10BA0RuDPJJsU2Uy22PCpQ9C+gMT4o6ij8RpVPMEAVEJbpDNxVplyPzq6ptUzCi7tIrVmn
K6ooyHb0eeuq0r8FW/i398gAHfI4EsAPRBRyF88eWTZdXERaolPHT937w8xBsrWhqq1juSvk
7dvFv2bYZOIA7agLVBf18ywNoxQp9S8iXyHxJNMakxyaLFopgzFjGcs2j0EuCg3i48Zjpfyp
Ga1DxJbI9r6l4nmh67mHEcYJHPQ89NohNRUOPBAeydzNFxAlezCI7lwruWuwEURG3GoKQuwC
0u9c9a+6TqxgxEbW0gW36GvIZOE3DFUzNgwvKek8SzjaWd88LCUWRXMmU0BobX0oWTuVL38R
ce5zHIts0DT7HkQECtroriXOg//gIf8Rx+sf6XQbQ0luK3xRw0LHO+sCGhW6SQENDCieT6Rs
M1YNdsJagRu3R+9fUk3OUjJnViRF637CeawxzSUCCQ3/xqq+/dV81+oa2DD+Gswf+Q3c9Gja
zs/o8Rs6WSsh5SQIoS7G+x28JtY1ATzsug4vCh/ju7wFpSG8o6CqvBbGnt0B34TN6fzDEgE9
IjGoNkNCCzoNGndFhn4cTJ1YMEpRN5ctDzBFJDIfXD9VMlhNg2r8U/oYOt4UtDushbXVxHbs
/PGuy83Mnvw3BrAaNT++XWhkmEToRkgxIB9SRdI4GhqsLbgsFQY+BfUW+R9ILy9UNWGZVT1V
mkoHF3G6YagMyfvu1vKI1c7RHeEM+tEF9BfpBg3wmNoI2tL9VftIAKgJmA8pEl/eUMj24jzV
YOH+DCXt9uNwEJILlOw1uPiq8JVthjuguaMY0mrci7gxyoD5W/tk8e0BIAeKBDkN4QE97L3m
jdnCwQKsTrIJszLL+MjfuBDRSsSDuZfndwtl3RfA3atgl7eeQJZsk2qYjqf3rxyk36Kg06r2
euXp5XL4+w7KDGzmxOCa0r3BWt6819HJt8LLqxqkOcMa4ZbUnNYM2tH9CCgJCNTRKaodosmo
GqJJluegtLk9zK7Dhbk5yvTXouSY/CEXTPzu2xbMMNms36XLZgBZFmgK7fg/6GPoVPf18Z/c
ggQiLoBQdlMCI2r4IfNfzvrVJOik1U3vFPdl8iLzVPZ/+9EsYTBKHoopGCE0/u4KSkNCO69B
djIQP6xOCi6xRUtPSUOgLCJGxF0UQcZgVE8tVrY1PNkA7x8OWTEuWdpr/198WYYudDHuVhw0
Gyf1Q9NUdEl8QvE+lksaSWlNh0bpIJMUUjLKJBow5AwK8xpDfyu3LVUtt0KOO3zyGsPMrrDI
FsSuwY7EDvSQALIjyjJp9/kX5zoVNFs/bk0qPidWOWmcTe5FRUH9Nd8PpxK+NEoakBN0D3v8
oNi05906JzdIIjELCwgoF/3/DLmTpGbw3P2tB4AoqSqtDUAXTghh8lUIht1JHQE76/45FsY2
UD9pBPEAtyhoMKUv1xUAE2j0m93K9drzGQCeMKX/78Fx2DHqCdsVrqamnrIV4k3ohqRAumf1
Vr+pjHjGstwz7STmprRL0zICcQQYB9scRh+p69HCSdX463P7qPG46H/bP/m/P0A8ZlP0Kajh
e+6f71bmMrxWuB64erhJusmumLJlre/S7ORy8vn5Z+wvEQUKpfC1Jb0juhen/EIHoCQwCL0q
jAX2Ea1E20z5HSrqGwStJi00vuVx+cMIIgxSGj/69u9m0bL5eehEz+Dn/fod/8gCieu30Vcj
wA46Bv7t182K7+n8cBQw3m8EQvnC8vXbe8PKAcbaZv186cnNtOefFPUKVtycE10d+hZeFDYB
Uf5byiGtZ+lwz5n+axiq91AEqtnF+p4UdxZ79aki+FNcVFFVCSJXNnUu8QdGBKotliQYIDwt
Ig6gMeckhikUTYo44y3wIco0My9yWLdftfIn82LMzasF4O3mvSBRMkcxjT2lGKcbtD2cYvpW
FFMTVNk2sjU4A/T3qhizPhRN7RYGLZU3l0FKQRImnC6tBoMrATJM9cf+UyQhOo0zdj3qOtUI
IMe4l7vhzTgAzGWUoZouqCHeB9zE+lEjQzXlHcMnMyQYAFcNSQAaAsoRjQJbC7jyH+iTEvoA
rg5a1sbDlAEO3M7vDdVf8hMxsuwL46X6wyyuHPokmETpB8kPivUqyy6az4hTkEWOLbNy5akP
PMZ+3BPaDLeV5lHtYx6B58Td//NM73D2ytrZ+4veqOJ53SPkhOULvIrpydNM363ecsK22wHS
Dutw963ab+Yw8W/5/gp8IyYO5643r1Cf4qzLBZDKGKODrHir8Ko+rFfLy6hDvTIQ8P7R8YwN
Df1EDgD+vsSZ6J/9y+1q3JTjfgRkw8SKLvkzC7Oz6st473znJ+6yF2IbxO6I6jYaxAY+CO4T
MyvuPeLnxNYS7kDslKaZnWm2V7lO0k7fAvMS7sQHFfgVBUMpMkV0KkEZZyMfHNw8SSqgKiYM
NSW3PuoYBujg4ZX04/KmCwMEThrf8TMbGVaSK1wMDRykMI8vjUxMJlU7Y18waP9Xcirb94fV
CNGmDCR2tCRR59PSKbZy0RXS8PHj8571+TzBav9GpzsaUetlbC9u8YVWZF/y5NT+oC7fJjUs
dP1H96IQGRyFCUs2IFToFP8wVDK4Ki0mxirKNCs6105EJ7E2/geS6h4eShOW+I3Tc9ZF1P+w
xKn99i0k5ACEG1tBGUHMTLpLA0A5VyoMXwGQSC0QMQ7xDiIkmwcexmzzQuIY9VPnpCCzTPfm
DPPQ+18N4QdiGbAb2hJ5G0YYRl89JFYGP0IYPWcROPJ2AWTxBc+SxDvhMgQT2TDkyO5hjCui
orB1tgcPbBYAHMlDmFgqKUPsNRQsLYUirDS2TmE4/x/NCD/ynfjJ0uL8UjK6G7DrnxAuLDH7
Y/qH+Vf8eu5ECMEA+i0DYlknwxi1E7r0jfQKJK0cfSReO9UUl7lbsVgJ5/fuyVyzrZ5poH6m
Hp/nuKnLkPTcHW0x8FB6Ko9C1BS6EoAoQQaJNsUtvzSuKko2BB/mEQn5bb8e7lXpEuP/21LU
VP0JDyUxVS/QJqAXzQIXAnzZhwId6y3vrgiL7cDezb4rCyjocu7SIGbmwsrP4eHVCOPT+gnK
UNz3mwW859GUrgSv47MXD7n3fhVTMU5E4BZ5F3pbHiDAEjD28gB226zOH+bmxeG6qsMI433u
Zs7ozjsEJBOGEDLNxOZ19Lfx9N6FsiMBluzx920LYhaz4BWW4OpK3GPEocUjyTjvj+4tz46v
Fu69zZKz2O/i6hvye/N34TDhSPy34FwCch5UKe8Vav6XGSjo0/7p4BXdBQCz+agllAj/ADsX
GPZq+qj5ShJhF0r8iPY34tMB/v2s+hkglCz58Dbw/ip/JoUMGPIEDUcc7w2vHYQoRhSJ673V
+gUzOWgT5vh5K3QgSvar3M324gwZ/FXppvG/HQslhyAbKuoh4eGoD8oF6tYy1qjPnRV3/DsH
Py8nEbD/hg3cAiABGxpb5m/zeyCgDODkWb6c66r/wdW224kCiQSK444aJzYn61/a3RNNLC8t
IzLmCR8bNQlAEe1SZScWGOkM2OvYCtA7cQ1T+Hr8A8mq5dwmCROwCCcIghM8NfL/UPyt6NDR
leCEBF4qGDoCMbcH7huz7zbjSPgdDHXSaNuMHOwB3iozD4b6dePEC3BGgzF+yJCQxqU1rdwM
xjlWHCvZWfdL8sXwZANl0ZMF8RlALf45hCs8Pbcf0vls/t8suhXGNqAbBLwIGvLvm93uC3Aa
Sxag+O0jZQw+Ot8luPtIHsTeCAlkIUQHskmPEcIIXy86Jv7oG+AdSXVJvTa6+5PwqghfGbZL
RVIHK+vkr+p97+vUBPrV+tXpxUBuXr8qDTILPMEelSAUJhwBK/4q+G3rtgjwJylWLkLEG08v
BjLZBHXSEhjhBlXWKgO+E60Y6vwB23TFcPfO10e+r8LOp2bTQcloB9oGtd2dA0seYvp91UTi
LrNTthLXfvLg2HPjMd0p4fglUQVJ94EUXT/99oe39b01vDDZCRiwI/PyG/ms/Usv5OW41G8Q
PyQMaOA+BPUh+VJL5iy4TMRNFRNTOHcn4FhJLk31AwMc/1kYOAM56JH0xukf1JDyYx8KFHXz
wuuF/Or4LcB5trrpMuy20GDK6/ReARcCIvdspw3i5e4g8NXhusvmKsb6h/zH+o7jjvHtECAZ
/RVwKSTJk8rhAbfqD9+39OrNtvSeCsHm3+1T1UHxcs+//6UM//NSKZgIQu8kuC+WW7oMBkgl
1g1540C3Qd8x98DbHfpEAqPkCQL/1PfMmelvqv7eGvnUy3WXv6xH0ujPiRzHvpXR4uonoQXZ
X7m3xP/on/hSAcT3BgYQBNQIuQaw38DVG/IVL/YlxwD8/qgmCjRI4xkJ5dScwHsRwgtyEwju
hNuRAq0gGM14xcr2RPFU/4TuRzBZH8PmQR+JFFAMTx9bAkomRkd8FskGNQUSITT7/frK7sbz
vE1vF/EUauEe8zQQwPujPu4GNv+gFulCQDKD9cj5cRH5SlEzwElNJ9PUZx+sTe4asPGCCugN
+BQUQXwbchlzSSghdR/hIEANuuQG/sxAWCcvZS5q71vAOS4VPSMIMahIlPMtA8MVFBs6Vq82
vjXRV5g9PlfTWCMhfEjcGp0nrU+0G+JKEx9lC5woBvJo8ar0ugQVI2s/VkD7BmEPwSsI/xs2
N1HfD1Q3US/oHdX2OwCwR+8laFGdJDPyRjYDMvcp9AW2/pAckiO4D4TRrt0E6JMj3xPYy7sJ
zc0p92vy4Lhdty+akwRsAFXcUBDBDnXt+RGlApPVF8QGtVXPQ++l0d7P7g3p3Tr0TOiGsePt
yd0y6aP4d7+zluSxQNfWlPi1Atl0zYreC73Qt8mhD6r9lUmWvLVpwBzBd9Vl8/m8K9+Wycuk
jsrjrkC/qs02B7TX2slT8kmSecKeq22gSbQColvmSfeO4Aa07NRR2nHJHvR258HY2g/v95Du
FgMRBvv4q+b+Ew7Pmd5b+TH9CjxiDMQE8Qdl+/9D7e/GAGYhJP61UI8IkE/8JE8K00GMAKQM
vxIaVesvQ0L7UKYHxkUpUiQh2zdpPAor0jm5HtrO3OkOAyDzYPxK944VkEWxGcT52iKR3cgP
ygkmG/89gviGBpE0GlSfFfA3gS2mFQhLqklnCk002DwSNRstSfmBJ38SkkKBNVcabxgy9G8N
uvkk/HYQONgGDTQhZxPXSQMaq+sOJYo4+Ljj8ZYkmyrvMK8f9CyCNZAhuOeN+MT14fnI6BVG
wyYA0l30fPMc8Y/WSPAdD70sDBVNB04U5TbANyQTpCc+E58MXfPQ/TcXjPLqCxr+3OTk8xzQ
qNmK/VHkphHAEF8L/xZ++eIKscFkvO/E6dgG+pX0gvxy5QHdV/ImLun3ZPnQ+5fyBAK44czf
W7AJ3EDVi+iOA3fqQv2t0DXwx+j36c0DsumRC8wPPR3zAw/84xPx7KYVrRSoHM0oSuPR89IA
ueeRAu4Jhu0fC9omuBycDFvqUPYWGmnl0+G7KYEJ1xVFMMT7dPRV5aUBuhDVFK4Ubg92LyT1
C/8y7lTmQBYI9+/qcPuo/1ng0O7y2zbkPuJ01h/4R/N2BPjzlvcd0eLNIMaT3B36e7eIE7Pu
PPYfHWborwT+7R35ee9q3Ha3Xt8c6/jAotxS0jfOAs992/zwUOyDDSL20c1VCvbpFv5mEhrq
if1+6LX/8+Y8wvXi17vktoLIM/L08c/ZGCW/+2zrjd9PuyG+wsS36HXE2PU/3KqvKPFj694S
7fYx6GMo7TOINaUu4kkgPJMgoAv6EMxC1gTA5lYMkwsOAQjaj/HG7gXWGexGEkkWGeTuFnQf
MOWRDWsXI+kB6/L9TAVqA6QyAx5J/swrjSb6R20vaTloTqssGlIkJh46HCef/fI7s0BHL1sh
KC1FCez5dg+fG24nOQpcBzQvrhT49HoNmR8g9bkHY1A2HoYnFRCCCY4aJez14SPu//9Y79L6
kPWXDK0PAghSHv4h6SbQJFsZUAz/DpoI+hvtKGULkglJFCEK7Qw1G+8NhvdfERUbEhqWFe0O
CCQSIhgfAhvfEGULYh/OFqf9DvX8+QsO7hJ9DBkA2gEvDLMf/BV4ErsabBLRAzIAzAfMCfMJ
nRQdIe//avMc7GfhnOBV2vzSvt6A7if3C/3b6cDrUdol4Jn0Lv3/9+Lu+OwR9JoGwuV08KYD
efQ/6zfvk+cV3IjaRNa44wDW+tqS45fkdu+h8ZDtg/dhEJ711upQ6aDXSO2f+ZbllOFS8Nfx
JfnM/Z4INQai/n8GgfnN9jwCmAg88v/thv17BrwQsAEl/RX2kPYa+AP05/Pb9fr5u+2u9nv5
LvZ155PsF/io4t7ur/Zy8i/zr/BD7GPuxvfH/ib8Tey59fPyytgW45HqsNrz6a74evZM92vt
XfG69Kflh9zZ6Rb4iPcb9hb2cv/o+Nn1uPvs6mnu2/Q49CX4Y/xwARLx5u8C84r1cAlz+s3q
1vR0+gQBOPbw8j379Pji/gb2uv6VAdfwMu0L7v8DMxJVF4UfbBzzDC8HngUlCMsGDAvRCFL9
mgSa597XoPftKTwyfxe5IsQYDABKA1/95vE07ZLnjAjpI7ETPAhkDi/2pfJeCGrjmdwt3SDg
jP3I/C/6BRLwH0/nz/C2B/HEb6sk2icN6AwnF+Im8Pm1/TgrqxWK553LOwrRE6f/IEEQPaMJ
wAaILSYVYQxb7kDS0g5jGFkJrO11IcEl4+zmGcX72vDECKwgpTam9xMK9fnyB7gomu2NOy5K
NiwE/oD1dA+e5oMwJAmFH6kmqiS4SB0Tx2BNFAMZgBngJt1BdQWhR2EBsAK+DZYdMxTI/Oz8
/f5sPgsB7PyC/18BFPqZHAIq8hUSAAIFwTpN+cAyV/rIHeAPvehpIczsVkhgAWUrBC7CJasM
zRSKBrW5Vh1OyjBCiw9q9Cj+Q+iO7IPW0FJRrSq9GtQq9BPnIuLu3enDMDD13P1CwQxr40Qw
6NtbAUNK+9R02YT+Df5eSPy4wSRL9n7CzP7vCykHspiM7kGyehPz3nHs7kzMvoPa5Ms+AWi/
QtNc4L+wgM1L5scGkLhPN0v/NfAzWngUiN1Nyn0kSK1H30syh9yU5tbHlCpWFdO11/4c5ADD
vgBFzxe9/87lDUXd6+KyNMv/pwR3zo0TRx821MLsyTW37r3hqSV63z8j2fLAERorZd1zLBjq
4hlOLM+whiH/2t0dGBvv7qpwgv5j3ZW9Wy8K4xvC+geDAnUkiELfJWb0ECd0z6Am0RpbPlEE
jPiYMNAhfCIL9ksi/NX9R58X/QLuI5oVEhvJHIoLu0ujLnqBcB2S1JbKkyEk34bIlOedLDv2
LuMf18uoNdJW8UAfKdIu96o0Ot+DQLzltd6MCJMIHhMw/B48fgmaDmAGKvgpTVILG/6NDHv3
PSJU6/FT/OJank4GUiG0Esf7iATWojsJnu4fD1203smDHSzrHTIw+g8hpY8y3Pbm/tyaJtDx
yAi2AGQreP/N+BSVncDK3/W0vwISJeXwb/N0xSjg+TVRtnPsF8WD4O3aXBKy+bWhDAQF+D4u
K9tJxTG9uwcXEPgLeh87AdzUvudoSgr9a+mMDCYNsLHyUEA1bihpHYCzzwnW9jEXhNnDFivY
2fMyJ1HoaQAxjOrz8EGSB2ftNY3O4J/A7qFfPm+3TNOzTqwTfCK9NmfEsOA+9UXaDk40ZAg7
/wwkOqsRoyTl8moUpgrACYM+ewB0dQnETegpQVL7r9tH9akLu8K8JyIN1hH5IUtD3BUY6O0g
IcTb7nzjBNIL9JTkVR4e968KhgseKRAybdCHWMMXX4NKBKUK8/kfGQXuOP3b0PwZRQbqGIZ+
IrIwFqclmx0h87rKnF+yw6IA+wuKNIAb5wSFWcbKmgjs8lWc8QyxH2HkE10fRUQXbwXL9DYo
j/zEHSUd5BgAXjkDuPsmHk/fNibQvyj8rUoBru789mX7zrYOv2B57XAzw+zcKmM36PMgEohX
1TdC/HMZJfaHV2vZNT2Gc7b+kCpOBJPqqt/KEtv4xAWAGxFofSUo+9wfkiaRad7vrCFf0MWr
iivHBSEVwt8cCuDwigKUKzjpet+a4/saSNeC+OQHqBFAHowTt2ld/Ybo9Q9hv1TtfOHVyEk2
dg4/IQ0w+f6D+dDNJ/jqApIUIknyE3/Ni/GOG7jtvwUX5H67BRLbzT2c78qT27C1Ku5T9TG8
WRdM1fLQMvCHop+pMef46OPK2fnW5PDhTPnIyJUaMkCy46r0Ff75wBuzohQK0TSkmAU+9e8P
hu14znntRE5WFeTd6CO1qbQH9OA0kTkdCcfGyVYmCQQurJzskNcEmPcFwOrULH0WyPkIBA7B
Rg9w2LvkpLdeqzj/o/vtIHr5+wVW3iTwyfvwxBT57LWOxE4qYPex9xcHB+LsIFAlEe60AJH3
aPT75rDPm7Ej0LkDgcOfIrs23t1dBcMb1xqE7/bv2OyrDasFecNNNV8wgMwC+h4xnw8yB84o
ygyfKhXkL+3lKDTvbRZi/EIn2y795/IlzBSl1ar4myjKPUQQuv//G+kWLzYa/sb9rgpxISw7
nhftdPMZFhf+WrMIUS0KVMIbyw6TOrbg+/PM5230/DKU3qrz7vhl8Ncufi9r9XIJy+RL4/Iv
+RHmG3U+wefK1dUTwx5vD64fnRe6A6UxUNdTAbgYRyQKULkLwx4szDEO0B1sAfsc8e1B9SIB
8Q7e6S0CYQDR6rnecu1SEgXOcNLD8k2/r/b343XuuzI75mgqDhQP34788waOAcbWWgLUKa4a
/P8vQXIRyfdJMzj73yD2RwQYnxSaEo723h4QNxPwHO/4JIr+yvkUC7TwvB1nCJHeMg2w3HXa
3xm1+9DSV9eW8qH/UyZ4/O/6byfM6/P9DhdfB6MbaCArB9IDaSG2FDgHUkKvF7Xz5yjlBZYW
XQ9e/jk2zyZ7FsQk5R53EAgK+fQFHkAdf+zaA6X1m+6UESwkGwYvAyogYDJjJ8gaEQz076wI
w/ZB7C8HJh6gEcQAtAAwBZwQqgGeEPz5ld3X6swF/fbH7bj2sefY+LD/JAdC/hv5p+C97KT6
v9Wb15rdLPRD2n7fwAAp/psCjfoG9jL2n+513fDmVuBG9fgLqP3NAN7/jfmWCM0bnec91Wng
ndvX49nqUAL+85juUPDazyzdQuuS9vohDBhfELgL9voHC4/4yfBV8HvoCvzF1kHBgdgpxOCv
oL1G10W/C7IXx3HYXfVF2hTLLdIhyyzZJuki+oUI3ip1IIsXdD6iQuUp6yrAV706yCE1Lwol
PyPWKbcgFRjUIl0diDHPL1I4bSZ9G7EYO//cDQj6vgLwAZEXcRGR86zyEuX84BnWNuI/yHTS
Kujx2QfDqstc0CDGGasRlHGx2I/RoB2gHpylsTfGms+6pGDSOce2s8fTzMg65DDyJ9v98Fv4
SvNw9R/xC/8d9joJXwPjAyMk3fVFEyg16g2WGfgl7jIUPcQshyBxReFJXlTwd+tnenKObEJm
H2S6X7pWIEFBSSQ6Vjv0POs02SFMK1ZSehW7Cx8vjCEZCAgKkRJv+6b32+240WjT7AFUEaAe
lQY6/vgHa/cgCp4RZQYP+sEB+/o/8lvzgOP/xZTqKe2U2DnkhdNezseyqaokyZDfwfJQ+kDY
MwoWFPgIFxOQ3MzyQ+8w3KTev+DN3gPo7fbf7qTxG/C18NbZisI8xmzCVsL05cT1lOlR2jX3
BhzaDaoEUewW8VDuz+eQ/ED82vvZ68njlQkdDBfzVAdHD6oLQvDR7ZLqbNhK7evvSuCy2aDk
f9FY28n85vzR/kgQSxgOEIf81epH+I8NyhxfAuL+eBvRE8sGhxLsKWw+oSroGh4yri3nH/kn
fULCP8c3ekbAVvg8NzT0RPtGTFdNTChIlVhLT4ctrjtdMucs2zCuLY83Py63Plg+EE9HOYot
tivbFAodrx/jEZAjZz+vJeQZBxs6Kb0hKx10GswtvC/oK/k6xREQLIYuAwOpFjYf6gXVJOk2
gS39JAoZHzlqKisuyAaw0WH7rx6rL/Yd+SrmHScagTmDIacXVBebB8L6nwu59EfrwOeP0zjl
ZeUu4qvMKtu44ae9y8h+0frAW7lxrSjMecsFoYew0J+Nm6ewpq6uu7q0U6pVt2mu7a/ev4LC
78/EzifEj8vX0MfF/9bB3Om92MXuwtzEfeEV5bni3dPo11zUpsD2uqfHR+Uy2bXA29Pjyjqt
3si7zBrWxN49w1jImtMt0HzeuunayZ/k6evPwvu37axrvnfMR8jnz67xDu1WzCTgseiszFnN
2drK7H3rS/R4/Z/0/RBPFggguhtRE9YjbElTOhIlIjtVHngW6RqTIYgeITNVNK44RFCYPF84
ZDxWMDcwr0vkUghPEzGUQupJykmEU2tCuVwbO2crwydmLiVGVCCMHbYwoCxUI64roi4vLzg9
6UB5LPsudj9DJS4cbyXvG+AH0gY/ED8Z5wsW/IwWcR0tFLEPuxwgKLo3Jl2rZEJKGy95K8Um
8yAuF+MgDzSYJhgjlin7Jy8jjgIL6ToCMA/Z/bTzIwIQAtjax9BLzE22pswgyNHhcuf6qofW
4dOX1HDrBv8c/DTYtONDpinJMe3Fwburf8kf1C+u5tBfqLqn1LgYquS/WeAj1B60tcmbxgbw
FtjT0WnX37x/rFeMstK+zufFBtj04SvoK8jP7MEDfvYW95YGIwKm0bTP0xHSEiPr9AKSIkLi
POC2GDQCdwKl/3bwNfeN+afSyAVsGLzoSwKF4Vj2Vc87qljdX/rm6gSoy+zly/m3DPjr90Ti
Drjn/WECo96f9xEXoMs17N0FQgLmVLoQWVkxSq0htUZeV5lWh0QdVDQNjC8wFFke9TRjI7Uf
1Q8ZMV8XeEdDIEYSIGH+QSUmXiB5ALcTJzzPamVly0nmdqRYj1zYXHdYkVLdUOhqqkmQSo1h
B0/193cgKnhoSdE3fGstVmsPav0eJwok5iWkIULm8dgS+isw7hcx+nrqJiE1/FMCKR7B8vsH
CAV7SRoa8ztqQFcYevO6+zFELw2yCTnWzPRsB5gn9vwo/TY62PRpHJ7uahbZGN/9bQqXqvf0
8j4XLj/3jw3wWvbteb+zCU4HlvO3uIkDK0aX6Iwn5gGE5h0uKgg3G2AgzyH9IFgKChPyV0IK
8sZ6DR3mOfVGy4bDLwA51ZvRS+gC35bjfNacz8D9+N8Y0+TsJNrVleCUkZh6gZunMK7xrQir
scRB343UpKVR8K8DZZfwnSzfVewknqO329h+xvy96N/mIaUGjeE/+drsiMg4+PrteM7stgSj
+a/hmwyiH9CM31SkK7yVEsECYeET0evO3eV80gG54tDaxQebYchZ0ZDI0N8B0YEMC/1u4X0P
Z+dXyK7lI9HE39QFTNG/21/5WCk3KDkTgeZE8rApcRAHO2npauIn27TYy+X20BTmn9roCirj
zQyCHCg+hC59LMxfvxjBL6UHKBa68IXBCw87AAECzBgHDho2UjU7R4Z+WUmqN0dH3GDyYwxG
dCwPB+3WaNGe7yLrJ/mF6Ffy/xC4ME0zLxBvRGghCTK7cHxDX0M2DnJafkjs0Wo0zT/CL60U
/CREUrFUS2e5WC1iAGPmT4U7YznIRUwojAI/EEzsMN0P4hYHejXGSbxtrl2eahNC7ThLNCdV
RUfNAzz6DtCBATzeVOfNC0kxGFWLKEc7FUgrU1wrEh0ZJmkcE/j1q8uuoeSl0EzTo+05+eoj
CCHBYhhHEh+MS18gTRF99ZvenuIMwcGCmJS5o9ieENd37Er2CQxwPWc8fR4IBxfyyAdz46yi
YeXo0gatLO4crv3tzPUKEzlP1SPCYVlOYVgFKEgy/D8zHkELGu1U3b6ZoxDRAwqe/5kswkLd
mcYz95DgNO0p+HPvmPcN9QEAZRvL9FjfJjQKHBvJIbCd5jC3meDnK0nUq+rW6QHoKDxjI3nf
BwBJBrLZ0uueLGALw9h1wd/CxLb8xGwhxu8bxJiumsPL7c3mMQa7HFRABiuKJKkipAb19Ku8
3cllzmLM4+Gt8QDs2cWb7srjmOv/CysiEzguK/9ALBbjDdP2btJI8hrewd2u7wfzhQkBACMK
oBCj+lM54GIFPi44fUhIIS0N1uUCrS/Ifq7TouKzSsY/4p7iUiDMVt9cgUopKAIsXTJoIxsx
+ySt8f/lRc69r+myLqMprsDEB+YI+DIPBkPUOGwQ8PlgDHADxQvVO3or5uRLvu+ap7Gmy1Gy
d608ujLYR/zxNKgWZxuyPGce2Ot+6bH2JxDbBdcbb/sVyKn6Z8Bf5xe8FeOQ+lT3ZEGTEpsY
T/jBOYNKeTGiKdcv8CKl7cz+PQh/7vO5rtiH2qHDH/mp7m/aoAOO8JEVNkR5GXwaey4DH4j9
Cu8O1yH75jnwJFUlmA3u5l76cuOt4PIAgAPx+cb1MiXqJ7MGRhS+CO/3bwpbLf5c10wtChIL
1gvz86DwWNVo19IANvbUAo0zRke9LGAXlS+JHiMWDhHs+Gb3vAYlI6Mw+QYo4oi6F54zuYS+
RdxwzkDQ0iHZW8AtFxK/S6o9py3yDwT159co+LAnYiiBQEb9uOE0wDK3ncMXsK/oOOCy48sU
WlbBbwtP/z22OoUnO/cK6wvWYMJ2tZzxFlCeLN7uf9kqxPDA/a3swNLlQAC3JgFBm26ZMfEA
vTdzOxcbc/VvzGfQpMusyHUj/CQIy8ewGKpAv2PgodFC1Pjv8TckcjBgNUntG+U7A1MmPYk2
qvrv6D7WFveNKIsOFtlhzZDa6tlx7a/ZOwEzH1FZImRFP+5CRjDNXqNG3SZlF/zzs+tk9Tn/
FhKFEhDyzdLV2qIMixF0DskUySjlK9opFwwYFbo4rB3tH1kN3fVpB/cGrukmAdkvGAxm7A/a
mt6mCfv2BDB6OvwR6ja6MpZLYjqXGCMZRfuayzrN2NXSzEf6xxoPGBQeFRd2+RjnDNzb0QS4
S9c6CEkSAijeKscR7Q4JB7vZstvqyOe3ycDL4+Aw7k3yOQAYCR8SC//lVtC3qb+Y9qLCyPwD
DE7yTLrzhMR/v4DL/epQ+x/5Nu1G/JYqxU7YSIU5ACtGJNUReMr7sVu2BroUxqLhzyksPLse
Wwef5J7RuMi700HpGAraJtVDrBhO5fAFDx5JXLM4aftl6iHNsLyd0eT3Pu538lLt/Pp+7Rvo
6fYWEVwxEFBpYT9YOmkvRv8xAC5+Eg71dwKP+7nrmghG+IvgzKuxt2zTN7SBzHvb2uTR/0Yc
tB/NFZ0V4DMBOaQmgT+WJHUY/R+cLoNFzkU0Hv7q8Nu4wOW7jLlhvbDFb+JG/zL+PPf8B4MZ
lw9dHSQXLhF+FdgJARRTHb4KcQXTBTjtQeOS8K/O7dpe8XXGVOxxEoPyIO0r93LiVupF/VII
kwYs9XUDuAsu+VnV8cTn1L/CMbfxz03JNc19ycLCxcxXy8PYB+4c8XL6lQKf7rD1vv2CDh4L
+P6LAR/tnOw52dTMv9/E06LQwff7Abrt69XYzUO46rZXxOKqjuNnB+YHihQU8Ln9Lw5VBusB
Wvlh7WHGuMLzui22PcdOxPTothPQNGcrd/yo7APADMfm6tvHk8Oi3XvorvNyFcAioiu+Wctn
RVObMuoIyxPVB57bKuFa6GXWAOVVClP12SdLQRsj+PGU2DUIcdhV5uztKOsLNl9bNFCUUAhm
mSoB+tXjC/grFA0c7S7AKfrzK9AEHooTWQk9HJtEhn7zR2UWewBPEKfE49aVE2InkWUJOO5N
RyvyG1AZZh34WEA7KmNLTCoecgtOI7RjTB1f7uT5aEE1Ym48IjXr+3RCuxtzqiXaZc7X7GMu
/GLvSzkH0QyXPG1IkiGeAdwKr+3p+x9QoRLU+tcTqhsKS90YhuqyMZAJ++go/6guVxU5wZlG
3jR4/jkU4wYcEg42Ogwa04ng974IIzEwt/Vk6S7drsYqwv0K7NREiM69KtFRrli1TKMdwFm0
QaYNxn/Fmcxl2QoaVgEK2ELNgOU46yy0Zd1M2EvMDdYk1JXURakNoMfPmOYlz0jb4OlO6i2v
HJRauxyULq9e49EJkk4xHeQ6LWJzHqQdLhQqI2UkphVi//zyUNfmqhT1V/uJz3HXRPtoD+Lp
Jcs9ov2L0p04oSy85fFm+UI3akQeIVMvkRhdAj8IvTO+UUZNBwdb7FvYPBjzUpzp2RSIShj8
Obp8tze6+Oth3mzm/+C1pdHzYSzEQB78aOe9C/0z/jE3T+98bSmLMQVpgXiJYkBcnF0aZlNh
i3fZcIY0z/DdCDto3CkvGnhNXyZNuFj6uCVZ7JwiyUJ5RiYnAgUI4Ta6sNZvSxG/V7K/T/b0
nS72PwfdfdjO+xHnSjAIOyjjmByhB/QvR0enKaI+GwoSFzooyCE1AuX+YSz6/yHvksQy9O85
FwQx9yTpCPxxwZn/eukIiJsfZRyJAKDoGrW7n4OmWwCp8f2iBa6J4mXfjtOJ3ybSk6A5utbt
GgTu5g3eJg4lBZThJPH6EycPWPzvvdn+UwFG5cskEhMHIwEg/P7jJQdqex2qD58DUcJ30ObF
+vSFGh746r0t700sdvCRvJ6pxpXuoKyadK7a4ga8LZ/J2ojVDpm85XkDQvqrCgAYfUQkGXYa
zhFRBlzzZNW/KnBFuCaUKgQTSubw9gflxRVrRwIQMDjZLewECOVP2dTj17WatxvRAdz08iYL
0wiQG9sZ5gTzHzVGciRDDc8vMhgM+BL8QgFs2SMiy2xtWuBi4zsRLrwzrfkFwI7dgt1t5vAT
pOvo9WPkd825Bz0X4RZ74zr9ll+uGjHeKkr1PUfnjd8Ex271KPt8KEliFDhlDRwlU1nXH6kS
uvB9AJ3iNrOuIvfqq7du4MoB4BUo2M3GxNu+wPToShFpJEMXVrrF5+3+8Le35W80ZAjDA7s5
BFmyTTL1wycBXogtMyVmAwnvBSOl8SLoBWm9RVci0U16GXYZvCqACG8kHwkez1gOVRs++3D/
bPgc8SvOV+hvNVUlb97NCss3cOyPyb/3QwQQ9uklSgl+77z/TPXjB2EBQgGv5RrqaAEL9z7r
qtAs1IbJrvOpB136YBZk+CbT1uciOrQWEM8G95LYmM1+EeXxYuVU72z/lexu4KU/WQsr/0QX
Dhzw/83qGSs764m4cs/V+/T4GeYh6zDkiOiDA3oZhCyE7SDjojY1KAH5Ndf+I6ggut6nG/pG
TCBwJidP3Dc/M14hSQP79+D1xNDb4bwAFes8F5QS4ge8JMUwqDg2FFvtEgfuCWPrJ+nJwC7O
58LqxKrxeOfwDpAFFw8vFEkXbiXzC6cFc+Gb4qHYHcK4xB7ZIOEk0qTeWNdC3sUBQhHt/bX6
Cv6JBFHg1sPJzoi17OFR5kLXluY5AUonKSytSAxGUDMzGooTqv+V3xz0+wzmF4sOOQanBfjp
qwCFC+fopgniBNMX6SL5DyxDKy4CEqEa0QD20wzNW/R78WXf6QOOPnQe5PLIB1D59ePE/cwR
uwVLCD0MJQZBEqUKAPuO8BnZuscFy5T0Z+tx8hEUZxzXIDgMDgHux97ILQB59yHBqKnrvPfI
9uVg8aL12Q1UF/EUw/Ok620XnBQDF5UjNwcu9sAQvfk/34joHs1W18TTlbSG6HLzZ8Rv86UD
zwbd/Cj1Wxpi+CnXmOfRF1nrCfp8Iy/vKvhD/lAT7fX1BnUY8+0LFTMV7fnoDAwRoe1PBW8I
CwLgGhP9rwAoAD3NZ8jN05TrSu5p6wD/nwFz9n/jpiSiJmYkrSVUEmsvHy9sMQ4gJBdy6+f3
+h0ZBpYHJwnU9xDpHueEABsO/f0o74YJdh3sAST6cfa35K/qdf27+UsMbAeRHMkfujWsYKM8
KEXXVHpPMz+9OHIp80CmOIYhWhp0/nD0pOhX8V349hfEB38bkx6jEQYx1Q+oBn0UM/7I1dTh
0t2u4AQG/ycvUA5gsU3CMFsyQgZU/nIkvRIhF90YLRD9E1z+vABpA7P2tQO5ApH0d+Tp/N4r
WSqYI4oDmeYF5MPosPzD5sPwGfVA9O0pDyUUBz0Wgya0EiQDUPzMAlUMpxijEIIL9hS/5ZbQ
6rBdoCfCdtNh5d/ILs40B9rpbOxbFTH5wAXf3fez/LQyr+jHm9K48knlaAb3BGfmpfXm4vPv
7uE7+9b+sgRFG94Dgf+1+RL0quVW2yDRjt9qy73JpwlNCo7sTtjf3RP9rwFl8vbWm8+gzPXH
a/d2HXv6+fb/AnT93TP8KjIiESc5Ir0ochm2JNoPhevn2w3xPfuA8pX7Kg+yCc/+rfUB9Jru
HsG/rPrQmfAZ7CjHUa5R2d3fZACH8I4XBCZA59IlsAXQ/I3negRNHsgJOCzNEQwP5AXBEAEq
YzUSIHcxMkMoJwMNBAIaB9AgVjZpDTQU5xbtDHoKpwwLLmkq/Q1REiIXHPaj9CMhIBBMDv4p
RRXFGogfkzEeHXAldDX6FoIfpguDEHEWBSV6KOT7eQ46LZ4Nue6T8o3zhQXXG28kFDneJIQJ
AxqlGt77pgIiDxDyPeW07fX7uvSQ6nTfI98A6gL9VA84ByD/veQw8Vz0Dexj9LTbDNmN2VLV
48eQ22/kx/Az+bntYf451K/R/chmqw7Dl9/B373r+PO48bAEGPI/AfANbRLdAin00/5w8WLk
sezl5YjeePWH4rz/qf/b3vD2j/pv9Pf1GwedC1j1Wddh033uLOSo2Gb/6AQNAcIIvvjbArv/
TOKR85LzUNY86Kb+wfUH83UFdAfF6EvmFdcq1FrvQdQF2w7RUsDH3qTzevlU8qUN4ytQMdwM
rgKi+OThsfkb6DXzcfJk4YLxn9v08BsJZBrsHOUDCCMZBxDU3+KEAjkbQgraCdkX8hSXAXLp
ZP3HGaoYIhG7Gnga1wO2DHoIvOTRENEuKQ9qBeMVKxdAF0InqRyYOeYvoAewC2YKWQrO/aMC
JBITJDcahQzq/Kr5sCS7K1MjhxFYCl0A9/j+5wHozQLr+VkIlAiUGrcVVibILukTDS+3I9Ik
lxpRNQs3jRPfGqUWRyobLf4wxyAdIhAmqhA7EDf/Ef7WAeUPUgem/QQLmxGCBvr0g/Yw74P+
NfYL9STurOssC1sDLhLcDjsK7RIpFDQOue187/cDzAuGFvgwsznEITgV3hB5E9AO7ABxBDv+
J/Xk4zftmvhD8C4FShFyGC4SBxl5NVogQfrvArz2Ltx5+rUHDPt9BIQLZQrYD40PRP9k/QAX
S/wW6hkGShQjE973iAakCuT5WwF06ajKSNxN6bvZet/A2bzkc+4E4t/bF+/VCbPzIQSUBjfp
B+4Z0Fm8bNoN8J3oc/jbBvfr/uoqA0kUiw4iB8gaDgNG7iv3qOTR36HdutuV76ADYPCy5m73
0v6z+Q3t+fxU9zbfFdoa3TrgR/X48fr1HAR98kv8zvc96e7meP4yD7n1Be966VvO6Npo4e/n
aPTd79j6hQzSIG4Nxv9k6YzsWuly7tL1sOMI/CzqROs140bqC+pU4Iv4zukE7NPuP9/F2a7n
qtcT3oXv/vOuFOwZmQl78hro4eTf9ewBOup/zIPDfeCC5f7jUPWR+ZcB9Ql6DZ0LEhikECID
jhTIBKkFZBe8E18QhgcUGqonoBHnDSQUg/VC6u7vdd2O6wbx4eEy8W8I+xuLCiz3OQrGDigJ
wBREJfkjZUG3MYwHDiGbFc0R9BOtEhQOuw/RC+4LdSlcDGUFpxKNNrMxcQck/QL7iwXX8NHq
0ehEAQoFE/7wG4YhRisMJ+4ldDL5I4wSgA7MBPsEfBG/G5spziPLFHoejyj3Kn8sIxlGE7cV
x/9UAfwEHfRy+dkGOwVzCNoJkQEpDM4b8Au96Lv4MwsNCcwHzvLR9IH0YQKEEvscGx0cEicc
3SQnKpki/itXLwkgFyNOI1QmvCU8DQ8H8wTKCmkOEwEP/jHmzOnK+G7nQeML7dzv+vZE/iwF
qgEh62Hp2O8S6oja+dzq1XXDv9up5mzpgvP590rtY+2R+OLj2Ny+79jtFt4p8bDzB+aawDHS
NehW0EfpNN5J6gHwxuxB9/P/ugO/9cUIBANt7g30hvDg1FfeVP66Bsz8l+xX8w73CfAr7Q3X
Be3Z80m3l+Bk6N7QTgp86DjvE/9q+jgSLhS+EE8BMyrCELwfITLOHzQHkfkzFejwof2V0OPK
q9RU0anmQ+40FTr5ihwADfDggvtS4Gjaf+2W0xC2a9B71rPlZQ631yDQhSFhCNwRBj6YDG4l
MzsPKDM1WSU6LdY4Xhl5L+AfDQGrEML1pgTyAbsSVBL/8ordOgMEHqvtoTJTJQzeifGoARfk
fgjyHFT9ewVmCF4TxhbHAdcgwlXKGPwm4B97IK81Oj1CVB4w7CYlLJBGzDAORgUq/QkgDbcR
kRZ+D8IcGel5+Xgpbx2266v2dPsb+fAemCLeGzgAp/Eg/8r3gu1U483X79907rvxIMWzuxrd
EwjH/6YDXQPe2iXodQOFIh7x98/DrhzLtf7Y8MYhvBVOAnH4ewhjFHTl6u6RBzcTrScY9P3+
Tg2M5GYLPuxr7SDD2c49GvMKAQXk7ooAdgSj31qdnu9e83HKCfmZ8q/69/4qLkQCbh8SIILO
OfMbJ6Hq4/rjFdPQrRUl9rf9sgcky12qyP+UPdHWURmAH3/4JPsAtMWsnOXBxH39bATl1jrm
WrtuMrI67AHazzbCEsnGuzP0ihTnFZjoG0+nWc7scNh8ASTpZsJd4zDny+vx2aIqMS9w23kR
sgfQAIMTQ9Fh91rv6xYCMPzuKw5OEZNAmTnbLys+xS6VBkAl/iUo5zkivCiRQXFdhUZ3KQ00
DSXv5QoR8DTxwzfidRsG6kEw1f9/IMxXXy5EBaLiZvKazb39+iUSHwNJUkpF7wjOLc3C8Qgn
bQueAj0WaebqxUM6eVSb2ALlbE+cCy/rIQFnE+sUIAGqGTEc2ADn2dIeSB20JDsx7A6O8Tvt
KzArLIfgO77F3qLC+9A17j8Fh9oK004BggQvDrKoWJ3hx33XSeBEDIcF0NL+85nnjvQoCZ0E
r+57+8ciyiIl9s7YZxiyP7coDfM44yXr/Ngx9TwKMOmT2xHYGPCoF18KEdGizZjXxcT44Z7u
FAXe7G3gEuyxwcnWTsFh00Mbuefb0a3l/e260d/gyAs5s2uuM+hpACrrHvWSCRMpH1FYCq4Z
Vgxo6Y/qp/gY0J7Kae0iz/oXrSPQ8f74bQuD6GEcTwjs3uzkb8WqGxRGUybG0RwZPSiw+Ic1
1TsPSX9WbDTXF3YNm+yDKPsB4B8fJQXXC+udEoFNrSRvKKUF3fJg6L//iO/4tQMFoi6uAKbo
8CG0BsPwou3kBcTh08H9IxEMFOVG9+3zEjKqPBkxLC4+10APWDLV+cPmZ/Bg8A7jfiRhOmX/
CBSYK4EDzvakysLyQAW4FhcbMwX7RboX3Pa0KW439xJGBqoGzxtn7U/PHfyFFbstJAP1EXvi
2bEi45nW8Mzw+70+BERuFwf7jUtIP0jwcEVtPEfkAfPVKeIXeeCi5Lv9i/z24RTnAdpR3pjW
ctnpDyvuuPw2ARTwGB0HJe88Eg/C2I4UVRou9fEP6B/SCYnkHQkYKXfyNBPGLbsx/RgU7A4c
jQpyzuXmIgTp9hEEjv4G38npThA5/pzmSvyCDH8QCPQH/p4L5QqVFu8doCYcFQgFkBRHJa0q
jQ/MAlYR/AvkGo4E7QGLFmkIXQru9CL4ohJ4+Gf1/Qb6/m/sTuVi/ATrReRE+L3tW/J5DXsH
2O8O+s30KOUm7lzySOYU42XiCtoD9BAEVuME5FfuZ+Yd7a71rfteB7YBvPiCBUz5lffnBccR
Xw5q/CACTweKAUIVqh3tC0MdURRyAdj+L/e/83D8D+5M6+r4t+L/21LUKfU87inrKwfp950K
qgxlEH4MOgDzBU//TwNiA7v94AFgA90FwfOc8ArzyOql7XfnifjW3VfDmuBb4GfUc9xp4/fp
uvWo9GLquu/V+wf7DvjT9Bn4BvFK9h7zNPWt/Snsbe9N9nQETvSY9kIGKvws+p3uHfdv7iXo
i/xF/DIC5Q50/yoKIg9V+6IIw/p66InbtdpI6pjicO9t9GjztfmKAWAEQ/9OBtwLnCQ7Hi4S
xC0IIrQXZiO7ErEWPhY5BjcOCgpkBVcJOgqM/+n2wfZM+OH/oPyG+BgG8glJA0YAeAeDBQUA
pf0j8mjvh+eT8h7pueJG/hwEavzjDR0RtvtrBer7lf46+zTxgPGp8KnwQ/4UJHgLvfckBYwG
9/eV8cTsQfWfAhT3EQE5/qH9Wf2YALcC0gMICwQMOxabGPEcVgsVDlUVxgaQA1vyOPKBAmP9
NQFgEpgYGgxyAu4CtgItAO/0G/hqErgXjgE5GP4ZLwtBCO4DRwj7+p8LPBv6Hc0X4hMyFDIW
zBbDDIcOow8vAJ4C0hLXDu0T6wRgDE0jfBM7C0MDr/1XEDsBov1/C2z8NQYAANwADwhYBFAG
yAvIFRMVcA9wCqUM5wZBDcwI7/ee73wBlgnj95v+i/ni+m33xu4j5UvcrvV97pbxuw1v+Bj1
BABT8wrym/Ol7cr7lwoOAA8I3A0eEGIhZya9InccZhgAFCAIe/n5ArYH2gNaBST/lgE5/5f5
/vPY9fn85v8kCD4KzglCC6UPXQ+y+0wCtQaNAsf0L+al9NXhd+Wc79bvA/Kc7jLwuugq+Fb5
FfrlB5r7gO0090TzzPU394LuF/X27Kjwqe5O5WvwA/t+9jD9UvkY9TIANwALAUb0HgHFAl79
4w7vEUMOwgct/0r1V+h957v9Ff+S+rT/CQAFAtYC5/eq/pUExgOdDyEH1Au/DkbxffvEGPkE
vfbR+rb5vPCV9IsBRftr8Af2u/rI/XQBOQDvD/0PTQRHARkClPdgANv7K+7D+aj6ufo+7jPr
a+8R9B7yAvL99f31zvJw7cD31Pjj7ubxz/si9ar01fwNADP8Sfe5/p4AbgTrCvkP8xMbCvsD
TQW2ASX93/nY+88AVQtgEogMuwoyAzL/BAkRCREANvEX6/P15/0v/PEDkfpJ/igQ+AziGYAE
dPxxCbj/KPjW9kQAvPjb+cn5WveR83X08wnlAwH5WgQqAQv9sgbGBCMHeA7QFu4achkVEocF
Dg2+EOkUqBaCEyEgLBIzEMUVfhLCEPQAsAtP/xX4VftY7XXusuuT6g3zJ/4N+ffunuxs8j71
d/11APn01fXL8zz0rwC493z+Ig3bCCXzCOxFCW//RAMs+jb5ugAC+4gB9f2+DBkCXw6YGYUY
ThAvB9MMaxJnDtT98/vg4+30MgUS/mf+xfz5ClgDBgb1CAkE7gcmDncW7wyeB28K4wlODzcR
oQfhCgYM6/9QBGcDaf7C9Yb02Pct9Bj+6QJO93rywPNo7V7su+0t7PbnReyq5gjon/YW6z/m
TOhf5Mvl595Z3VXxD/Ci6zj5AfuB/A//9v5gAt8PmREiGNolxhFqCBn+wO5G78737fzH9XQB
UvxK/VsRew3S+9wCago8/Jz6cPQ6AN79tfFW9aHx7fj+/Hr2bfTmADL8Uu4q8pr7x/xlBSEU
vf0e+LgMTgjiDjUVwhtrGZUMoQrq+uPxnPY6A0z5ivOYCv8O3BChErkWBBsUCmAISgn1+AIC
nxadCR8Dag5pCXgJ3AOcB4QJmgaHBc0EfRGWFCUjuhrrAcIKKQ7SDtMZuQkX+Uv+/AVt+473
tv0B/wsOUwXDBkYLqQw/Dn4LVBYsEa8Odg2lH8MVdAJXDloBPfhC8f/0uu/57vQDYAe3DTcM
0A3GFuQTxQ6ZCFMH1wZOBJ4IDAP78QkMsi6vH1wkPSzsJfEbWBpTH/8MxxZcDIUOdA5n8RHu
fuM39CX7bvW88V/sT+6i6Vnx5+xu4Z/kTOrL7kvwg+DL3SbrAOcB4bDdKOHk6tv1NvmX91H5
3PJk+qz5jvAdA3kDdgDwEbAECfG/9Azwte4M9lr3ifOO7MTqeuRQ4nzeFN/m61DZ69QV8hbw
EvG/9fHp6fRz+Of2XflR+uH+mgCYBpoA7fewAOoIsAyhEa0UaRqwDPMJsAwB/Rr9XgLy/4z5
HACzA3kH9A1zD/L/UvDx/Pn71+WK3z7vHemt4X7kdOMq5KTniOyO5f/qouto5rbrMvAC+Ez5
KfRt7gDy1vEG7f3nSdwh3inrFPB66oz28Pmt+P4EYAbIDQsJ9QcYDrUQXg6/ByUPehZsIFkP
GAiPFakYlCBJEtYEwP47AQkEKwPX/AjxmgufFi8IgAcXCc8KIgl9ESsShxpbJtAQTgwDDcUT
3x7QGsEPHgvNGOEcoiuBHKoLlwyz+IjrQOoO/Oj7sANrCZ4EUgzcDZQPYQiYDwcR5hZvIsYU
1grFCW8ATP05AZ3+4QWOBJkGAwwJDkIK8wmqDhwJZBSQGsYlUSdlBb0GGQ1a/nb9Lv3XB5UD
bgjy+7nkvfaI+p4A1Q7d/9Hs7AE3Cl8NDhCxCs8NVA7JD/4Cjgm+BasF+gf69OwALQKCBRYV
bRK/ECL4iP4+BwL78gdtB7YRZxG9EVUP/f+MAAwFfwuN/zH+XQJ1/wz03/Hu/UnsruiY8m/t
Cesn5/Pv8/Ve6M/lGOK03mHjAOXd4gLZm9ZO1MjEpMPC3WTVotDQ2yDbPN+30yno5fI87MDt
kPHa9RLxsfnF+gf4cPXj9ez0a/puAD/7Lv42CIER2RCsCJoGhwcSBx0La/uc87sACAMX+Bro
ceFv6+32P/kjBRYA8QXCEP8MOw8S/fUF2gkX/fn3DvCF+rv4H/v19bjmEPW49mrpbPIF/Jz4
3PtqAxMICxH+Bm3zh/kLAHsGnxTVGNoJkggiDVMAJAeeCQcLRhFJESsPChTzFGoEBghMBd4B
lQV4B30K9gxPFcMRegtmDUcC2uxtAwcK5/4KAoH5twuFA9D3Dv4U/GoLEw/tHskdogFmATsJ
XxRAHRQZaBEAFVQT2Q1/F9USFAUJEJIS6gTl9D78kAio//UJUgMtBLgGFwj6FG4W4x8eFykO
sg/xDF8KeQ85DpgOmgzKBk4NqQz+DaYLHA60FfweTBps+az7hAvjAVr7yv2m/Jj6Tfxc8tvp
XeyX97z3k/j1B48FAfYc877ulepF5xDij/L57tfvxfdt8tb5bfxm/QX9IgmpEoECE/ez/BD8
Tfy2+8v21/Ky7uTulvTO9+7z2Pv7/MX9vARfEdkDyfhwB4n/YwO2/af5Ye+l8QwCbPSY+0H9
1P7jBIX+p/70BUELTBfQEFr5TQHt/JL3xPUl7cnuGPZZ8h/tmPRV74P2U/gf/YUJHQwiBkQD
HQba+8v7nfoWAOf/wgQ4Bt/6Kv8h/wD9le5Z5Tbrp/bL757sr/Re4u7gIusN6jzmcex79RX7
If379gfzIPON+Yrql+Pw9hbqB+Xt7kz1pQNwAFUKTQZ0BLoObAsiFJ8LIwqhDXwIigS8A3AH
JAYSBUYGBgj/BPoIjA3eD9AVqhRnFEEXlhU9FGsSeRSeFWcS6hLoFtIUcQ/8DfcRUBlaDpgR
8wlK8kH9qfw4/Mv9QvHM6zT2vfpJ+qkBNvpQ/1YDpwp2FUwA5/A/+aUGzACa8BTyv/MB773t
BvQJ+3r9PwDG+oECaAmMAUkBqAUQC24T1gdT9Pn3V/xL/szxZPySAc0BxBL2DakgdS1YIPwS
cR2SFBwNsw5gABb6l+iC66nzRfhW91v8uP8TA1AKsw1oFGMYHiNUF50JlwRd/bvtmuVS5ofr
3fo1+Jj4mviP99H8TP8qAGD9rwEBBA8C0wFXBPkDEQyCDLX18/Ty6nrka/q1/eb64fXF+o0C
ovw5+S367P1f+Hr35Pd69PH1gvEP8VDlw+EE9mL2ZPQk9gvscPiC/Ynsy/Vv9fL0nPny+sUB
avMY+3L/gvaN/Dv82f50BB/+Fvld+yb2zvOJ7z/x8u2Y42TnMfJA+c32evpY+6b9zQSDA54G
nguwByAKQw4pB3QGGwvRDWMTahSDEOgKwPhX/FgIRwKUCjkKGQZ4CREMaw/XEMgStBoZGPgQ
Kx2KC8v/ihBhFJsWMxdJFMQMQQ5gCUcIWBQdEA8QaRSnEpoV3w1yDZcWchSBHDUR0wQrCW8J
RRVNFDEKG/1c/j8JiwkmFM4S5wXJAq4JHQlXBXIDVP0N/t73qfAe+MoCTP7K/LP7Hfd6+r/4
L/dP+MoEEwkJALD7oP22/av5mP8vBMb+Nv2gAeL+1/9TArj+8P+P/sP6GwAoCdYQyge1+ZIB
RwOw9yT1NfQr7rPyjuwa5XvqbuYb6DHjz96T8H/8jP55/cr3w/3h++D0wPeF9FPw6PQs/mj+
ZgB9BHQCfPtR90r5OPlk+qf8tQIJByX3v/KL/i/4s/RF9+sA2wd++Wr4Cv1s85T4jvUo7gX1
mfWg9aLuQPVT+TTyg/iL9WHsf+WJ3wvUd9u66q3l6OuX6r7nAO048Pf80ANBBsryze69/Pn1
ogbZFJwHFvX+68fnP/Vf+zP9GQi7+Wf+1vmV9XIKYw6m/zr/rP7K7l/2oQAQBKIDCQcfDL8W
1RNbC8UNUQoKFNAUWREQEjcVjBDCBtUIZAbICTQMzQdg/4oGlRNmCsEMoRZ2E/oHbwoNDcMM
NRD2B04J2A30CoMD5gKw/5b2RfVr+N30cuyW60r4OAWXCj4IuPnv9g4FrhBz/CX+QgJn+18C
EfgF/HT2Ae7C8Qv/w/6bA7wKLwBsA+IB1QjYC6sUexeGDRsOdgrwBiYHOAdEAkb+zQIjDVwK
hQkJCyUJQAxHCkoKQwjjCrAOexNcFncLDAqWC+wGIAJ3AAD+QfykAZgBbfz390X9hgB8+gPy
0+mc7Tvzgffz9iH6jP97/4EEnwIGAswGuwmvAlL8PPza91b2wPFH8UrzBfdi8/DnUfu0AGrv
vPjL+B70wfUQ8dfxF/x2AIn9iwCV/mYFowlrCw8HzQKkA3cHxBzvGFcVtg8bEcgYwQivD+QR
DQh8BLEB7vZo83cFNgf3BcwJEQWqB/4JSwWtB4QL7QuaDYIMdQxLDLoJVgr0DQgPHgxbDSQR
CgmH/UMEDAm7BBED/P34+nD4zvWD9Sr1bu6J6KfsHfDW7M7w0vUj9GPz7fEU8V/r8ejK6Trx
Y/Y79ZLzpe297hv2i+4c44zpvOYS5rHnd+iJ5dncsN6P6m/ou9wS5WDn8+7t9Y77R/vl+nb/
3f84CSP+bvPlAWALVAg1CrcBDP5/+s734feu8rDw++te/vMEBQXtECARQwiJCgUIxvyJ/r8C
jgnhBL4F0gb+BS4EBgNaCRAL5A+HDJoKywr7C3MRIhYcCcwKmhqfDZEMIwzyCnIMXQU3AacA
IgXfA7cHegdhBKsF3wdIBA0BHQ7yA9T8XQBlBqEHA/SX8y7yFPn+96H3bvi+9SkAD/oXAHMA
9QWmC6gMuxTIE5kS/RTuEPsGKQdYBHAHfQNm/Ab59POb9mH6j/kU+m33rP2GCs8KlRkHGpkW
BhORCzcU4hC9EYMWuRCLDNwL1gVhB2wHLwaUBMP82ASQEPANb/wdBn8QPwNfC1QLGQX2BNEF
eQgAAPj7Rftl/Er90fvv/I78sviw9wv+CAFoAu8F/AUv/hX91f4+/WH/BPhD8l3tZeD03qrp
VOpn7JXviPCW+R39Kf0I+Pf43Pgg+b77M/3DA9X6hvbj+X/3yPNM9tr7QP1u/CX62/cy9lL1
NfaS/TcCRwhECZsH1AQrA9UCLv/cBtMOmgyRDzETCwVNBn4DK/qm+xj2XPXp9Qz7PPzA/tr7
rutj6Vb5Kfqm+Pz+dQLaCu4D9f6GAIcEbAi6C/4FyfGK9Cf77vbs9n4BOgl6/gX/9P6Z/if8
t/Fn82T68v8w+TT8l/sm/IoAYPpc/ucAdwHz+ij8pANiCDwUkAoj/UYEWwGrAcf92fdDAE30
cOjL6aPm+t3s1f3bVOua79r3sf4F+Mn5p/6OAUMA9QE2BJUAW/3t/Y/8DPqc/YwBoQOc/0n+
uwE3CeYJsAqnERkK1Ah+C/8K1QkrA0cEtv0K+UL8lPvXAtwBNgOGDP8TbRUoC2oK8gt5EUcW
dxGOCzQDgvw48VDyfPuU97P1WfUb+tkCPQE8AvoECwfaD2QXTxCNEDYd4xg/DYgMBhGJBwgF
wASdA4EHMgL0BY8FUAbFCMoIVwmTA7UBQAEZBHMIrQsqDNgNDQodBWIHsQXNBPoGLQzJD8AJ
PQeeCd4BWAIcBGsBLf+g/U8EpPtq9nn50fEK8pjyD+zE7+vs++fQ63DtJ/Le8hT2WPnN+Z/1
QvIA+1T+7v1JAYkBcPpo+9r+yf3x/4L8nfuF+OfzYPnCAAgD5gSkCksJHwMPCtESpAre/boD
4QY7Bp0NyAUaBxcHjwLM/ab16wILBpf7e/5RAfH+twD1/z8DhwSzBDQIpQiaCbAMRxMUGIkN
O/8JBz0KnALuA7gK/AipAMD7dvgW+V76LPmY+xD9NPqt+hj5Afus+3f8nfv0+IT8Nfv79YPy
XfIM7cDo4Odj8AH2HPFg9GT0JPai+1v41vQw95L2DPLn9e0FXAOZ99v8Pfqt+Hf50Pd4+K34
9vgr9TbsDuwX+/78DQA7A6IC2P309gsAKwO2CLcKzgnfDGANgg0nDqcQew/eDSAMcQ0bDK4N
yxGcEr0SERGXEK8SLxahCi8EbgjfA+MGIAmAAvEAHQNc/zX7YfPp8Rj8vfo+/fP/Ofje91H7
W/qx9uv4t/nG9OT1NPqT/dz9B/04/jkAVQKi/r751ffV8TbvnPOl8170+/Ud9XP0g/FN8Hrz
7fYS+oMCWgOG/UT8ZPuR+Fz3tfZ38zX0gvII86rr1uSw8Dn0CfL38Tr0w/tS/qwC7QR4AtIG
cQYHCD8OjxDICnAJuw70C/0LvBAuFVUSkQxFCDoJ0wiLCjINsgXi/er5ZvbI8XjzTfP++loC
EvwX/BP8H/zD+DH3rQOR+8L2zwCL/z8EGQJzAN8AzwKsBjADXgRgBf4ECAj/DL4KzAmNDXUK
rAIOBfgKOAUkBtYJhAhVCucNTxF4FjMcrBIzD9ULigMhA/n1G/AL+Ir4LPCY9HL53Plc/VH9
qAEjBp8IqAjMDW8PUw+IEhoTlhEtEUsNWQiaCHIBYf38/Ir+Wf149yT50/m4+yn+KAOmBMT4
nPQv+Xn5OPad+jv+3f1uAGb/iAC4AqUAQf8IBUMEIAKQAx4GgAg6At4A0f/h/B0DWQ7wCJH9
P/gO9W73pfiR+nsBmQkt/6L0pvx+AwIBFwMuCIAH8QjhCBUILAU1BFkEywT6BIsGsQuWCfP+
Uv4JBZP7G/zv/an94/0v9Lv26vQr8Hbzr/nh+ID6Of4h/XkBHwRnBwwJSQmiCAINmwlEA40E
VwERAvwB4wLwCFQGA/sJ+uz3yval+8j2m/KC8onxzfJP71fq9PEq7yfqrvDK93kAy/uh80f3
0fgc8yLsTO0g8oL0P/+mA9b+Avud9cDtF+nO7CLzWvhd+ML39vly/cH/mgWRDg8P4QeFAe78
2P2d/zb85frt/ZsBcQAYBJkJ8go1C94KxQrMCNAH4Qm/EBwRYguKDB0NDQk8BokFggT6AQ0C
WwWoA0cE+AnhCJQFrAdSDZ4NmguZBb/5AvFP7mfvOe0L7nPz+fU7+NT58vpd/2MBNQVhBnYD
LAQHAk0BRQDi+MT1Q/f19C74Lvn/9rv1qfFQ8GrwlvM+9wwBuf928nrzh/upBIwAJPib96D0
2/Xi9iT36Pee+qj/kf/y/3YBvAAY/7/9bwCxAIsADAPjAt0EmQLAACUB2vzD/DIAMgHxAdYD
0gUqCCkJWAsbDVsQkA6VDUAObgRtAZkCNga7CEkJ1A50EUALYQWHBw8CIgJqBlIDLAJKAHoB
bQdSBCMCxQnfDjETPQ2cDq0UagwvCCMGrgJD/sv5W/QB9OH3/vxiAEL+nwAoAMEBDAXOBs8G
hwQOCaQI/wivDT8QuBelHjMYWQ/+Dw8Oxg4nEIcNvA19CjMH2gBC9135+gC3ARwDJQcTCDsJ
awnMDesMEwcfCB0EwgM4BakF9QfhBywL9g3DEdkNPwdRBgAEPwOBAKn9GvuK+LbzUe3r64vr
Xun+6avqVuV644Ppo+869Wn9QADK/gP90Pzx/Gr3//WP9hn1/fMz897z/fMD9dr1CvZZ+Jr5
H/gW+R36mvaz9c31g/eM+cDzZvRK86PuIvEX8NjuxfDQ9Xb1UfQc8+3vS/RM9szzWu4A7ont
ROlP5YbbbN7W5abl2eiY6UPrwuxn7cDxtvO881z2m/vcAJQGxgZ/BtEEbP6aA1IJbAT1AUcA
5Ptg/L38uvp4+nP93P8+/en6dvu39zn3hvsE/GL/hAEaBYEGLwXLBfsGkQikB2sHNgYkCX4K
igk/CJgIGQ+3D6YNMxBnEa4Odg5UDz0Oig8/ENkPvBAMES0T2BVaEogNCw78D7YSbhglGgsR
4A9xFWENYAKCAuEEXgBNAAgAc//oCGcOiQ52Ej8TBRW+FIcQ3hWmGREaGhm9FwkV6RLcF9AW
MhRpFlgStAegBisILwZ5Bs4I7QxwDXkMBgpwCQoFhgDOAtkDrAPIAwsDDwD3/4oASf8h/8D+
V/1P/e/6ifvl+5H1U/R78Lbpmug77HbukO6G8A/xcfHj76XurO2E7LjsvuuF6r7rIO/w8vT0
OvO686XyyfBC8fft9ukL6p7pd+iH6knrE+xv6azj5eRt5kri8OLI5Gzm7Okw6bnnfOhg7G70
Zvqv+lH+fAHXBekJBgwtCT0Bzvzw81nzr/fX+bX8VgDHBfkG/AZ0B9QMtwxGCDsLHhCvELsQ
uRMpEfUN6gvOCQAIoQWyBq0K0QoeCOcL+gybDE8NjAoYCOADBAPrAz8GTQvoDG4MQw3BC2oK
+gvbCQ0HHwO1Ak4Cbv8hA4QJhAyABzYEtQKZAvsFPAXVAVwAcP/S/eL7CPsY/dD84/9UArED
wwW+BlMLBw8vGAkcoRSfEgIQVwyfDG8IqwgeCb4EFwagBLgAif+yAZIIXwidBz4MSgxZDlAN
9g2NDzUOPg/xC7MN5hAjEWAOcwj5B/wJlwgnBhIFLwVvBI4CqP/o/O8AjwJV+4z0sfNp9IT1
Yfgx+GP1ovJL8P3taOxk64Tok+Ua44Ti4ebZ6MDojOlk62rv9O627Ljtqu/18KvygPeJ+SX2
vPQj8QnvSPDW73LysfUw95z2hfeb9ZDyQfLN8g70gPPy9RP6ofhl8y/3afl/9Qj2yPea9qn2
Zffw9Cr2aPXq8MTriuz28+n4MPsYAAoDEAR7CJEJlQlSCdALjA3uDq4SQBT4E90RABI6EDcQ
aRB/Cv8HygmrCAMFUgcjB6MBVv8Y/Zf6q/R+8IfvbvBO8rTx8/Gi9Fzz0u988UbwTfCO8mf0
l/To8Y/vAu/z74rwMvNv9J33IPqq+/r/fgEQAToEmwlODOELwQ0RFHQPUgeeBjEEKgK3/Tz5
FfYD8HrsgOot7Vv1Rvkt/dQBvANoCPIKXQ7EEPENcQxFDnwS2ReAGXEUfxVWFhUUGhMVEs4S
6RKeE+wT1xZ3GAcWrw9uCS0Hkgv8EPgUYhtpGEkTvxBlDdkK3wjlCLYGpwHC/hsB5wIkBTgH
yQVDBsQGogY1Bl4GcAZ2BZEJjg78DioNhQkGB1MGfAb9CLoL1wscC9AJwQRx/kb76vzz/8sC
jwQOBS8GWQdDCzYPURLBE60Quw68DoANBwxKCyYMhQySCPAFjgkdD5APnw09DKUKVgw5ChQG
BQUDBDMCkgByATUAgf3U+975UPlO/Cz/Ov7e+jb5t/nF+a37Efw6+TH2cvOB8lvzPvM48C3t
ZeyP67Xr4uz17AftUewt64bqYun56CzpFenz6sHtJe266yDr+Olk7HrvxfDN9Hr5uvkd+K75
Nvzw/rr/BQCMALT66vTK8WDvIPEh83P1UPgq94P20fed+T/7wfsB/jH/pf+r/1sAUAItAp0A
MQBwAeQA8v8Y/v398/4//sv/awEcAvkBDAO8BNQDsQIzBbgGZAKk/CX4aPfG9brzL/PD7TDo
rOFB3NLdsOPF6SfwVvbj+Ln6c/2w/vv6Ovke+Nz2l/NM7bHtk/EX+NL8cwB8/jD8ef1m+zP9
gv8+BN8GgwbqB0IHYgY9CZANOQxCC2kMfApQB9QGQQcrBewElAHS+vD7jgDPArsDGAe9Cl4M
0w/xFIQa/BbYEfMRVA45Cu8InQejBHMCHv9V+E70+Pap+V/8n/6V/hMATwGRAxgFZAS+AnYC
PQMuA4EE3QOK/14AOgOAA28IDQpUCRIKyAqxDwgQQwz9CHUEMgOSAPX7ZfsP+Wzw2OvS79fy
wfRB897x0fT99+/6/fzSAEsG8wcIBlwGJwW3BWkEfgEMAaX9ovut+rH7ef2mAQ8GSwWHA3sE
awNgAbwCbwEaAZ4FnwrtC2cHkgKPAYAAbwCa/2z9IP0R/f79IQAGAb0BWwIVA+ME/AHnAOoB
zgHSA0MF4QXFBUIH+ASLARn/xvs2+xL5n/TK8Qr0I/ay9tf54vwB/x//l/vc+fT66fr1+Ib1
ofUy9xb7WwAnAQMDwgaHCa4LtgoaCEQHzwPsADoBSQFGBA4IQgqNEIwXexfKEnIReRGrDfgM
5ArVBRwFvAN4A1YJRQwQCo8Lugx5CvkLOw9wEsoVQxhCF8cRxg5cCwcLjwvEB+gDZv5k+sr4
Rfn6+j39nfwf/Lb+bv+ZAKIDOQWsBIgFlwenB54FIAQPBRYIdglbCMEFRATZBPwEFwMoAEL/
CgBJ/xj9B/11/KL8Afyi+Wj5PPzN/av7FPyD/eP7/fZ/9Ijx7O/O8wL2z/fN+M34BvsF/c8B
AAeXAf78lP2h+TX42fy+/7j+4f12/gD/BAKbBaUEuQHs/wkBnAJb/nr4CvXb8pH0Qvco+7n9
3P+SAcAB0wbVBnQFSwZMBSIEawKKA+0GnglyBJz9h/pQ+ij6C/fN9+P3gvf9+Jj4k/lL/Bn+
Sv7s/rMB0AGL/W75YfQg7uXt6PJ38zj0Xfcd9ZvyQPUK+JP4SPgu97D22/RM89TytfJ/8/fz
s/Wo9U32B/lV/BUBHQKQ//YAfQREBKYB/Psc9Wny2/Or9LTzj/PF9JH3zfkJ+wP99AAEAz4B
8QAz/sj7PvpB+OD4//ZQ9tH07fKK8ZHvg+9I8uz3Jfvs++b5f/qn+Qv4cfms96b3U/fo9nb2
vvfK+RT5APqf+Zn3vPar9wj1NvPu8szwmPI58m/w5O9Y89T4dvvoAUsJygpNAkT9NQLiBHAF
iAK8/ED4LPi9+1X9Q/w7/GH9wv5SAP4AvgB//Tn8BP5G/bf8yP4FAfoCxgRCCDwK3QhNChUL
kQmUCNoLeQ2/CioMew8CEJUJrwUhCG8HbARGApUDfwW5BvYH0wdQCMkJIgxJEMUW7Bm9FBgO
DQlbBPEEDwl2C+cKpAh/CyEQChCtD6EOOQ2oDp0Qtg9yDpsPjhAIEo4WnRo2G3McOBxlG0Yc
+xt+HXMeaB7uHqweDyBMH8kaPBgkGDAXMRUjFqoXAxZAFmUW9RLbEXYRFhHDEakQ3Q/oD80R
DBF0DscPNxC4DQ8MAAxwCZQI9AhrBr0DrgA+/tv61fgn94vzwvGz8Izvf+9Y8JLxpPSa+P39
fgMWBRQHvQhbBYcAaPl/9VP5Dvyy+vv5Uftf+Kf1KvbV9Rv1tvUk9wf2kPjV+9n77/3k/n38
uvpj+bf4r/lW+UD5BPc/9J/yzvGs8PbuBe4l6rnp9uYY4srhPuKr4pLjlelF7NTpHenV5inl
ouP63h3dR9/e327dzN1j4f3jbObH6oLuzu2L7+bxO/BF8MHwpvDp7inpfOQR41Xj/uNk5G7l
fueZ6G7nQ+cQ5mfj5OZU7Z3yvPV39Ir0R/SR9Gj3hvhz+ST6Dfpg/JX/oADNAZcBygLaBS4H
Ewh4CQIMTg9zEFIOXQzxCfsG5gPNAPH/lAAlA/kF8QUdBdgFHQixCOsGPwfgCisOxw4QDRcL
lQmMBaABGgLuBLQEGAHu/7sBngKmBR0L/QxSDpAOQA3GCzAJEwegBPgDkgaaCqQLqgwXEDMQ
rQ6vEGUPyQqxC9INBg4LDgoQbBJkFZIXbRmLGxAdwR1LGK8RLQ1VDYkOugpKB70Jgw0SDs4O
rg5SDiAMjwm4CW0J6AeuBkUGvgUqBLcAFwC+AvkCCf6k+84ASQE9AjsIGApTCeIIggoWDqQQ
+wk3AXT+oP1F/aj9LQGcAn0C6ALFABj+8f6d/W76AP0s/QL+OgKLAkQB7wAhAmECigHwAHL/
e/1j/AD7Gvr/+V75sPhZ93D49/l/+bb4//gJ+7D+vP8C+hX38/fl9lD2C/Qn8A7wVe+a7VTv
fu6I7ivxY/EW9ED3QPf99zH6zfrZ+lD8p/5YAjYD+AIeAwQB4ACJAXUBEQLyAnwD2QaLCt8K
8woVCCMGUwWVAPv7svva/oD/UPxw+Vb50/gp+F74MPrD/uT/q/+zA2UFlgV3CbYNcxHQEg0R
Mw/RDZwHkwI7Alv/eP+zAIj/DgEOBbIGugaUB0QH6QVoBQ0GlwE9/sH/zP2w/ukC2gQhB8MG
j/9T+/f63PnH+/P6SPil+Fj8sP8KAQQDHQSKBEME7AV5B2sDo/6O/1kAC/y49iz2yPcv9+z1
G/Sg9sD4z/Zm9gD2jvTe9ML3O/rR+n349fSe88f1U/kx/JP/kP+V/nz/3/sZ+RP3E/MB8z3z
K/Oh8trxZPNF9B321frE/Cn6Nftk/yn/nvwk/RP/cv9+/xn96vsU/cv7OvpS/GAB9wDt/RMA
DAPnAUf/WP6c+5L6ivym+CXz+PCh8l74G/m39C/15Prl/Ov87fvh+t/9mP7v/MT4ivaI99X3
bPh09yH5TvtH+z/74vxAAPgDowiQCOkEtQRVBTsCHABKAT4AI/7F/oYA//24+qT6hvvx/Ff8
g/8YBKoFoQZ2BDoE5AeTCrUJaAdDBmgF9gIbAj0DggUqCscO9xDoDQUKPAuaDvILPQaNAYX9
4fs6+tf4Avle+uj7yP5aAjcFkwX4BdsGnQh8D9gRVA+HDCMKpApCCkcJewczBTMGJgi/B0QI
nQneCG4I9AmyDIkMDQsTD+gSExDhDBwPTQ/aDP0LjgfOAgIAh/4T/nn99P5bAfgAUgLQBHED
SQR1B2UIgwX/BCwEYgGUA3MH5Ag6CaQLfwrdCfMLfwwHDIQKMwrsCHwJeApfCJgHqQe5Bs8F
9AKEAGwC0wS+Bv0GEgbTCOgLugtUCjkMSg5iCmUG7gRcA7kCvwBy/UP81/mK91b3Cvbo9LP2
l/ov/Sz/5wByAbz/Tv72+iD4fPme+vz7XPr5+57+awBaBBUBd/1e/lj+evxN+nv4bPi1+KP6
ov03/KH6Efrw+zr8fPeQ9zf5wPfi+a76Afdb+or7Nfbl9N305/UV9DjyI/QF9e30i/Rb9MPz
BfO28vHyb/FN75rwT/KE8z31HfRL9E32JPYp9o32EPmw+0X8sP0K/zABsQLTAlUBC/0D+XL0
kfGt7+vt1OzM6orq0u3G8TPzOPVY+HT8rv9o/1P/V/+b/Y7/twPtBf8HkAZCA0IAX/7p/qEB
oAVZBc0DTwTfAc7/nP8e/pH+Bv1P+gP6Yfkq+v76Av4q/1D9K/yK/Nb/ngCUAvUFNwksDRQR
vBMxEGwMzwmYBhgFJQMpAoACQQP/AMb9jP0o/5YCGQV8BqQE3gKAA48CYQKpAfz/5/4D/kf+
uvxe+5n66/ky+in5VvrD+rn8dP7/++37sP0M/wAAaQByAH4BaAFmAF4ATQEbAZEB+P8y/Nn8
2P4r/tL6q/tl+w77Yv1P/yQByf2Y/bf92Pu5+jz6SPts+tj4p/ax9Wr1a/cM+4f8Vv3J/Yb+
2wAgAukDDAQ7AW8AzP55/Tf9BP8BAnMEbwXVA6cD3gTnBloGegTCA68C8QE/AmwD+QQeBzwH
0gb9B9sHWAYjBssFuQSmBQoFsALFAZkBZgKeAjABz/8X/6L/Zv8F/fv7FP1IAMEEGgf1CFcN
kA+TDloP9xALEJ0MBgo/CSkJfwgZCZYNqQ/xC34I8wQXARIAQQAgAwEF3AQDBE8B+v+Z/mP/
XACE/pn9Yf02/88CzgQRBloIZglOCpULXwscCxwJ7wWzA/j/lv5FABf/Sf52/EH68voJ/Pz+
WABr/6j9FPwa+1L72fsU+Zn3TPjp+Xj6lfnP9yT2cveN+OX4a/pB/joBCALdAfsBIwHz/lkA
LwJhAqoDuwYZCT4KnQm/CGIIVgaRBOgC/APUBD0FmwYBByoJIguEDZYN7QoDCWEHGga8BK4D
KQIsAQYAgf6L/b39VQG+BAsEzgJmA3AEFAQ6AjsCxAEp/kL6w/cE92v4Hvrs+3D95Pwy/Sz/
t/59+4L6A/p2+lj7MftZ/fH8HPyO/Ln7G/yA/Yj+d/6X/VT8Yf0fAGoBCwFUAC8B3v/d/er9
Avzw+2L8dP0jAKUAlAR2BQ8FFweABQkJBAvRCR4LDAlnCVkIugW9BmMBbv6A/j360vqm+An2
v/ba88f0TvWS9NX1jvLy8U3yC/Hk80Dy7vIq90n21Pdp+Eb42fnO9gb2wPaY9ff5xvsi/Rr/
Svvb+0P5sPWp+K328fU692r0Cfac94D4LfxX+pz5svo++DL3wvbe9bn2I/cI9m30W/Ld8KPv
vu/372Dve+9y8FTwKvDz8T7z3/J18bny9fS78gjx8/GS8nX11fUe9iD49/eH+TD5xPnz+/X7
P/yG/Cr9fP+bAM0A1QBW/ur+rP8+AcQDFgP3A4sDgARTBeID9gZXCN4HpwpXC98KlAofCq4J
bgrmC+MKeQvoC9YMyg6ZD1UQ3xIkFgAY7xciE/ES3BJOEdESvhCwENAQcQ+5EIAQ2A48DxcM
qArbCmEJhAypDHMN4g3WC90Ltgg5BxcHigRYBsgICwlsDGgMfA0bD+oMxQ94DnIMvA/VDogP
2A8FDGcNtgxqCCcJuAY4BCsF7gKeA+4E+APBBP4CIgM3AxgBIQRLBS4EeAV2BG0CQgLyAfcC
jASjBEsGcgcPB2cHHQe0BrkGUAdLCOQImQaPA90DegLqAIQANv/D/wYB1wDFAYsC6QHqA38C
0/6o/CH5W/bi9HnzDfJ88k/yVfNG9LjyHPFv8DDxQ/Di7hjuTe6I7ofvjO987iXxzPM18vHv
hfBq8HXvOO8X8UzyJPLp8SryJPO+8n3y3u9/7QXsperD6aPodeh/6JLpYetr7bPvy/I99eP2
4ffc98P34/lj+9T7bf1f/I78vP6U/73/QgBzAP4BcQO7A0cEOAJgAq8C9wFQBAIF0wQfBh4F
SgX5BvEFdgdGB88F0wi/By8EwwNLAUkBQgUDBKwE7gjhCJ8LZw7mDPYO5g+2DkIQ/A6yC4IL
kwkaCB0KLghuBrAGpwcECvkK9ApiC2MMHAi9BBsFRwL/ATICwv6A/gP/E/xW/Mr62/iW/Wb+
ef64/wL+EwAlArEAlgFGAHP8Ef4w/ZH7qvw8+nn7bv0h/m4ChwNkAvsBSQCIAX0CIP8e/8f/
8vyF/OT61Pc3+CL4dPcQ9jX1wvZQ91739PY49kT3QPld+gb7E/yL/l7/2v0r/Rb8Qvyi/B38
dvxL/Bb8VP5n/x7+8P6x/ssAgAKc/9wAqQGyAUgCjgECAicA6P1W/VH97/3K/Rf+OwDsAGQA
b/8R/8v++PtC+5z7U/sR/Wz9gPzS/WD+u/84APj+Zf8p/2f/Pv4Z/jX+//1X///+AAD2AMgC
GQfVBokFQgZiBYgGVAQ5AUgCbQLaBF8GRAbjB84IxQlsChMLOQv3ChELlQmcCgALjwoSDGoK
2QroCn4I8gh2B/4FFQcQBiIFkgaPBXMDdAR3BA8E8wSpAocCWgNwALQCRQWyA8gEmwYEBv0G
gQlXCXMI+gUTA7gAkf08/UX92fxr/dr9yv9nAEYA8wCFAP8ANgDo/isASQAEALr/Fv6h/TD8
BfuG+pr4zvZT9Xv1WvZb9lD18/QS9Vv0IPX09LD07fXx9F70NfMb9DD2yfZO+zf9KP+tANb/
fAFQAK3/XwCJACwCBgP5As4CTgIsAkQBDwAd/9T8Mvxp/OP8m/5wAJoDTwV+BAMEQwM9AnkC
TwIRAmYC1QSJBv8E1gUfBe8FRgcdBd0GkgVwBBQFcAJFAzUCGwKrA/wAKQHq/wT/vf6R/Rf+
f/0x/539kP25/dL6dPsE+gr7hf1a/iABlgCo/3EAwf+CANL9Kf2o/Dj5FPqY9nL1xfUq9Mv1
7/Ur+CL66vng++j7q/xc/qD8Zf3L/VP9W/6n/SX9bf2X+2H6p/vP+hr85fyz+2H9lP1w/Tv8
p/na+TL4ePbt9yL5Afsf+238c/57/2z/0f0o/5j9VPsV+rv3sfZj9o73ePk8+278n/36/sX/
BQAsAvcDugVnB8MHlgjOB7AHAwc+BokGUQa5BU8D2AJHA/kB/QAW/5L+6/0z/bf9xPsL/Fr9
Kf54/kL/9gBGAHUAuQDeAVMC0AMNBDUCTgS3BMAFQQV1BN8EtAL8A+gErARUBbcFrQZJBeIE
igW5A7kCjABK/yH/nv3x/q3+Sv/fApkEXAeJCGMJeAvRCl8KTwreCkcLHQoMClQIRQeDCAIH
2wYaB3AFsgVGBR8EPwMkA18DoQKNAgAC9wGWAeYBOwMmAosCHQNUA58DjwOABOoDswOAA7ID
vgV4Bf4FoQfcBl8IEAjJBVkFLQSGA6MBEwGDAUgAIwBrAKwARgEpAs4CgwPmBN4EGwV1BnAF
BAVgBI4DqAN4AcoALgCw/kH/lwAJAzED/gFSAo8AZQCBAPr/nwAR//v+QwCrAVYBxwDZAIj+
q/09/XX7wvpt+8T7Zft2+jj6Ufo1+ZP5Nvrb+bv7hP0T/+4BNAPEA/ACtwAK/l37TvvM+jD6
VPpo+2f8WPsM/Tz9nPxz/N767fli+cL5f/jB+L/5bvoS+7n7P/xf+xL7X/qW+e73+vZ098f3
RPcj91n2XPUV9lT24/Yl97r3p/cE9yn44vmD+qj6vPsB/PL6hvr9+nL7Qfwb/Un+Vf/N/yj/
OP4w/TL7tPpU+j36lPtX/H/8uPwJ/bb9cP60/iX+P/0F/Bf68/ik96v3yveb9h/2yPVX9hb2
H/Ye9973z/gi+e74dfjX+Hz54vmW+kr7B/yz/MD9tf5y/gr+AP6T/Y/90fzJ+0v73frJ+xf9
Cf+qAfYCawTTBWUFSgVXBcsEfwR9A8wCSwNTA8YCvgHoAIMAYwCXAaEC9AO9BcEHqwmkCpgL
gwvhC9AMhg3XDBwMRQ1hDOwKcQnjB90GcgURBI8DRASfA5cDiQM6AtgAVwBXAV0BuQD1ANwB
TQK9ApsCOAPBA3MDKARFBG8FdwaJBh0GJAagB+wG4QV2Bi4GKQagBn4FxQRqA9kByQFOAEL/
hf+EAOIBPgJ7ASgBSQFKACwALgDd/z8AkwAWAVABHAHkAeQCdALFAQEBVAGEApADgwWJB4UJ
YQucC5MKqAmQCAkJQglGCMcI/whzCdAKWQsrC9kLTQvnCTEJewehB6EI7QgQCakIpQhmCM0G
OwUQBYUE9QJmAWAB9QAxAC4Auv+I/0P/lP7t/Tz+Bf4l/cj72Pv//Y39c/1i/Yn7xPtk+1P6
kfrp+dL4Y/fx9W72XPek95X5NftH+2D8BP3d/cn+Kf/2/9b/d/+a/qX9Mv3M+7L5r/iK+G34
HfjX91T3n/d9+eb5tvlL+jP6Nflz+Bn4uPdy9gv2//cL+JT3Avgm95z1LvRt87Ly3PGR8cny
i/MC9CX1D/YJ9zv3IPd39hv2yPUb9Q71q/Ue9kH2w/cS+YL5GfpD+jP6D/uZ/MP+4P8ZAZ4C
iQLeA9YEsQQ3BQQFmwP4AuoCagHR/3b/i/9n/wYA/P/v/qr+JP8mAH4BGgL5AeoB1gBCAJT/
l/6C/oH9zvyY/JX8+/x1/fT9Gf8qALAAowH+Af8CTgNEAgICbwE+AHv/lf/DAHIBTAEZA0AF
QAX7BO8EcwT6BFAFHAV1BXIFTgY9B8wGrAW3BEgE0wOtAwgE6wVECE8INAcwBjwFgwVZBuAF
HwanBjcGVAewCFEJhAqbCmEKDwuFChQKMQqDClwKIwmWCDgIOwiXB0EGPgUSBDkD0QKwAgUD
RQPrAkUDRgPbArYDMAQjA+oBjwDK/p79Kf03/VT9c/4oAYADowMrA5sCcgGl/539pfwQ++/5
RPmk+Lj3v/al9sv1oPV39ZD1jfaT9634bvn9+TD6kPr9+g/8d/0O/hb+NP68/ywBQwESAo8D
TwRMBCADRgJOAn8BSQG5AXsBrQFiApIC0wH3AJEBuAL1AwgFAQVNBNwDewOgAiECywDF/2P/
kP5B/hr+cP6K//EA6wHHAYIAqv8H/0z+Uf63/nf+gP07/aD9Ef1K+9v6v/on+sP6c/zE/v3/
NADHAJkBDAKvARsAsP1Z/OD7qPvN+5T7zPuG/I/8Hvwy/P775fu5/Nv8qvwX/dv8RPzk+zz6
N/h696j31PfQ+Mr6qvxy/Qz+9P/h/zP/zACgAfQAgAGNARQBFALfAkUEPAUHBVsF6Ab+BigF
lgQbBFwDcAQrBU0EKQTGAyoEJAT1AvAC3AHX/wUANAFbAUkC0gIWA3oDKwNrA0AE+ATwBMgE
SAO8AQACeQFCANr+9f3i/e/8H/zH+9f7BvwU/HL82fwR/f78vv10/tb9Kv09/Y79WP2D/Fj8
3PxC/XP9Fv7W/mj+af5c/2z/H/9JAJ4BBwL8AVECKgOmAz8DmALvAu0C9wIyA0IChADX/10A
SQCxAAgBegCt/4P/hgDJAPMANwGkAa0C3QJPAlsB1QBxAP4A7AEoAScA7P9UAIAA0v/h/jD+
7v2U/pn/Nv+d/o//ef9l/gb+Pv7B/kf+7/28/nT/dABmAroCDQKbAQQAD/9K/nT9Ef5x/qr9
M/0K/bb8Lf0n/nH+B/7t/d79Cf6D/qz+/v6R/l/+MP8U/0P+Q/7P/Rf9u/w3/O38jP3r/Zr+
Uf8BADQAvAAgAVABpAHxABQAYgC5/yz/HQALACoAQgEJAbUA/wCLALL/u/7A/eD8H/zg+7r8
MP0q/Qf+r/67/tv+BQBwAuADBQSRBOUEmgSgBO8ExwT2A5ICfwJ1A7wCmQFVAqQDBgRABL8E
LQU8BY4FfgZPB1kGCAXwA/wCUwJgAcIBkQEGAaoAegCcANAANAHLAAoA7v7N/b78tvyk/Fb8
Vvy++2n7UvvJ+6r8QP1//Wv9iv1k/nr+G/5B/sX+c/+R/xb/t/3x/Pj8c/yZ/JL9qv0j/VH9
3v3+/e79Ff6v/dL8tPyM/VT+j/4E/tz85vwk/WP9X/0d/Ub+o//0/yIAeQHUATYCowIcAkoC
gALhAnMDyAPtA/wDVQNiAzcEoQTiA14CmwKWAt8B5QH0AYcCygJ6AlYC+gGzAasC3QONA80C
QgLKAYUBvQD6/5gABQEdAV4BFQEcAfwABQHHAFkAMAC2/1z/2f5B/oj+Uv/y/jz/JgAtAFMA
yv8t/4P/7P+wAGkBOQEwAbABMwJhAqoBt/8I/jj9n/z3+/T6Ffq8+dn6Qfxf/PD7cPtL/Hz9
hf06/iT/4//x/xv/u/5l/jz+8v0t/dH8yvzs/K79q/6K/8H/oP/j/+D/uP/q/14AbAAbAJYA
xgA+AH0ALQC4/0sARwBa//b+6P6//t7+ef51/nn/7f///3kAEgC0/0j/uP5//kf9mvwk/Tv+
6f4d/3H+Ov7c/or/tABJAfcBOQJ9AhoD7QM/BFAE3gRVBN4DzAOEA/ADdgSxAz4DrwPEAxsE
LgRFAy0DRwNiAmoCsAIaAmMBLAB//8L/rP+P/07/tP6H/ob+Iv6F/nn+Jv4a/47/AADh//D/
vAElAy8D6QL1AsICjwKuAiMD3wNaBFoEZAMUApsBaAHAAaoB1QDpAE4BcgFZATcB2QCHANb/
R/8t/+P+Iv85/w//KP5m/V/9cP2A/ff8nvyd/Pj8h/0o/kn+O/75/t3/SQAAAAv/8P14/cb8
ePzH/Gf8APwn/O/8OP1I/Hb7fPuW+2b7i/tj/A/9Af0b/NP7dvzQ/AT9Gfwi+8z6avp4+sv6
Zvtg/A39f/07/tP+hP+HAGsBSwExAX0B6wAxALP+5fx3/Pf8/v0J/yP/b/6g/sv+if68/nb+
uf6G/wQAEwEVAvsB6QHLAZcBIALjAlIDSgOwA9YDKQM6A9kDugOOA68DhANmA6IDGwM3AjYC
eQJ0AoIC8QIBBAkF8wQ4BfEFZwZ+BvUFCQUdBO8CrwGSAX4BMQEgASgBNwHRATkCBAJ4AiED
cwPWA1AEbQRXBJIDOAO1A6sDbgNkAzIDIwMIA4gCnAIPA4MD2wNOBF0E0APKA3EDeALdAYcB
NAJfA04DJgMHA80CgwLhAT8BUgB8/3/+r/30/G38Xvw1/Fv8yfwr/e38Q/27/XH9ff1P/U79
kv2S/dX9Yv6i/gL/7P+a/3j+4/0d/d78ufxn/GL89PvU+xb8ovvN+nX64/oj/Ov8bP3J/V79
4PzX/FD9Bv2d/Bj86/ro+V757fj8+Hr5D/nh+Jj4qPgy+X/5lflK+Sf5E/nS+dD6yvte+xb6
5flA+rz67vpG+z/7wfuf/A798v2M/sH+yv4p/6L/cf/n/3cAUAAkACwAfQDx/9b+pP40/0H/
7P7Z/uj+Qv+v/zAAUwCoACwBMAHOAUMD8gN4A+ICXQK8AasAAQB8/0H/0P/C/8j/QgDVAEgB
twFLAo4CdQKrAiADjwPgA6MDzAM2BKIEfAQEBMoDXQNbA+YCYAIVAs8BGQILAloClAMcBEoE
4gRqBcMFLQYCBiUF+QQvBSEFLgViBVgFZwW9BfQFiAWQBacFQAXKBd8F1wXtBcYF/wWJBoYG
qwaXB4QHJgf1BpgGggX+A1ECKgGHANf/9f9ZABMB7wHTAhwECwVtBUoFuQSHBOgDhQP1A+oD
TgPuAukCZgL/AbgBSgG7AKsABAFTAR0BlwDqAMwAAwBt/9T+Ev4l/sr9//xK/b38RPwM/ID7
T/zg/JL8WPwv/Ej8SPwZ/FX8ivw1/G38kfyO/FX8bfs3+wj7wfqV+gX6zvkG+r75XPlZ+Yb4
YviV+V36C/vZ+1b8nvwK/OX75fz//Kb8Nvzp+8H7Jfuv+ov6OPq8+WL5nPnq+h/8E/0k/br8
bfy3++X7+vuo+xz88vx0/Rz+0v4D/0f/J//b/sr+Y/7f/Sf+Lf7D/Rr+A/4a/kn+/v25/Rf9
7Pw5/Yj8uPvX+7r7X/t1+6X8g/1x/fP9P/65/YX9HP0b/GP8svzt/Ln93/3l/YD+IP9i//H/
NACKAMUAsADvAAMBJAHtAcQCUgMuBGkE4gRwBaQFewZDB8cHEAcjBpoFiwStAyUD/AK2Aq8C
CQN5A+4DNQSsBBEFRgWZBEcEbATfAyYDOAL5AdYBigENAicDwAOmBAoGzQarB34ILAmLCVwJ
3AhaCPMHuQctB/IFGgWvBKsDUQI2AYMAFgAx/17/LgAkAFgAhADjALEB0QGrAbUBTQFAARwB
6QBdAYIBdQFPAdkANQD3/8r/Sv9h/nT9DP3//DH9fP3T/U/+yP7K/m//tv90/5T/ev9K/9r+
hv5j/lL+m/0U/c/8nvx6/DD8Zvy//CT9dP09/q/+6/47/zD/TP+s/3gAQgEwAVsAsP/k/tn9
Kv1O/W39Vv2U/er9tf7E/9sAWQKMAxsEAwXQBLEDMQNTAh0BxP/p/kD+nP1//T39kvwW/C38
Gvzs+7b7i/ug+yv8NPwS/Jv8e/yg/PP8Rf3m/Rz+SP4b/mj9T/1o/XH96/3K/br9A/4H/qv+
kv9UAGIA4v+L/wT/C/8G/xj/u/+9/6j/r/88/6L+LP6j/TH9ufy4/AD98vzV/H78ePyW/Hn8
ZvxQ/Zn+6/5+/93/AwCbACIBxAE7AlQC2wKPA9oDSwQuBB8EuQSUBHMD1QIDAyoDDwPNAt0C
NQLGAa0B/gDqAEkB2gFkAnICZAJZAnQB3QDQAEwAHgC3/0X/of+t/4b/i/9//8H/uP/y/34A
MwB1/wn/E//M/xUAUP9D/03/7v7Z/tf+9/40/4n/AwDm/2r/LP/4/j//sv/m/wEAbwAKAeUB
PQLgASQCNgIwAkoCtwEUAaYABwAK/0f+FP4E/nr+QP+y/3UAFgFEAQkCAwPlA78EKAXpBPIE
+QQjBJADzgJ5ArQCWwLvAe8BGgJiAiEDQAPGAyAEVQMPA4oCiAGPAP7/xf8kAH0AkgBhAcQB
5wEaAl4BRwCZ/xf/8v40/4T/CwDiANYASgAKAIv/8v6G/Y78c/zE/H79qf1I/m3/KQAUAH7/
rP4O/k79Ff14/U79Uf34/LH8JPxF+7P6x/ps+2r7p/us/AT+k/6l/l7++P07/rb+vP9sAEAA
s//T/kP+Tv4p/q/9vvzQ+wD8J/zg+6X7m/tQ/Jb8k/y2/Mb83Pwu/Mf76/sP/Pj7CfyH/F79
dP7E/kT/1f8NABYAtf+Z/7v/AgB4AEsAdP/h/jH+0v3Y/br9Bf5X/sr9rv1+/kT/rwBlAf8A
RgDU/wAAWwDKACABKwKgA94EAAWfBAkEzgJaAgACmgEwAiQCjwGNAWEB5QHmAlkDHwQbBUoF
rgVSBlYGPwYeBrgGcgdNB8sG5gVrBRkF7AMRA6kCjwK1Ak8C/gHhAfwBWALnAvkC1gINAzAD
2AOOAzYCcgFZAaoAh//+/uT+KP8a/0//8/9iABMB+AF+AikD/QN8BDcFgwXXBEMEEQSlA64C
pADC/sn9JP3g/M78W/0N/sP+ef/d/wcAUQAQAFn/6P6N/tz+6P5K/5v/Zf4Z/dH8Tv2//Sb+
zv4z/xD/EP/D/q/+Ev8O/wz/Bv/i/rX+5v3q/NT8Iv0W/Vz83vsM/PH7cvvH+zr8pfyL/QP+
WP7V/Uf96vwd/I77O/s5+4H7Jfyr/Db90v0R/mr+Jv8w/8D+0/4I/0f/+/6l/rn+rP7v/l//
N//Y/sX+LP/a//j/8f/j/3cAKQGiAAoAsf/K/0UA7P/o/tP+KP9e/zX/ZP6i/bP8Pvyb/Mr8
uvxf/bD9Xv1B/bb91f58//f/ggD3AI0BGwJCAgsC4gEvAngCgQLeAsgC5QJwAykD2QKIAo4B
/AC8AAoAi/93/6H/7//2/+H/NgAYAAoAmgCVAKcA+ADGAE0Ayf+T/4n/Tf9E/2T/b//5/70A
6QDsAIABBAKyAm0DZgNcAy8D7AKQAuQBQQE6ARYBkwCZAIAAaAAAAM3/AgAUAH8AwQCwADIA
x/+8/wgAmgAxAakBqgFWATYBqQEfApcCYQK/AbcB2AERAnICkQIlAgwC4gGoAWwB7gDpAAQB
9wDGANgACQHRAD4AQgA6AJn/Yf9o/6L/s/+s/3T/Tv8w//P+av/y/zoAXQB4AJ0AtQBXAPT/
of+u/jn+Pv4M/mP9nPxv/Ir82Pxt/bX9j/1U/T39Xf2N/df9xP3j/W7+g/5E/uf94v17/gT/
AP9v//v/VwDzAPcArwCIAEkAKQCWAGcANgBDAMH/sf/7/4YAjgBYACkAHgCmAOIAxgCMAL0A
NQFbAaIB9gHSASAC3gJoA0sDiQITAs8B3gHAAeIAfQCkAPQAggHdAf4BnwEHAc8AWgCf/0b/
f/4G/nf+5v5n/0//cv8bAGEANwArACAAof9U/87+3v4k/4/+Vf5W/h/+IP54/rb+FP88/xj/
cf/g/0sAOwAQACsA8f8GAFQAegAzALT/ev8p/9/+/f5i/6//rv9y/6n//f+W//r+G/8w/zT/
j/9u/3H/Zf+R/8P//f9oAFEAIgAgALAALAHRAZYCCwOOAy0EjARsBBYExwO1A4cDggPoAtIB
BgEFAHX/Xf8//1H/Uf9D/13/FP+V/i3+Sv1P/Lf7VfsP+5X6Pfok+if6Svqc+h77XfuN+537
w/td/Nr8JP2f/av9N/0g/Qv93PyK/DD8Svy6/IX9qP5q/7H/EgC/AEwBoAHTAXsBCQGLACkA
AADZ/6P/df/W/ysAhwAdAZ0B/gF7AgkDKQM5AzkD9gLRAswC5QL1Am4C2gGWAWwBkAFhARAB
RAF1Ac8BZQIyApUBUQHDAAYAnP8a/zf+vf3E/fn9ov4v/8L/hwB3AXUCOQMiBOMEGQU0BbAF
tAX7BJkEKwR2Ay8D/ALpAgEDfAKNAeIARQDh/57/OP9S/7v/cQCGAV0CqQIAA3kDZgMwA/YC
VALbAS0BMABs/43+Dv6K/eX8tvz//KX9SP7R/kr/+v+IAA8BkAGOATQBAQEaAfcAxwDyACIB
WgGSAUYBEgEyATEBPwFXAXMBZQEdAbcAMwDD/4T/KP/q/tL+q/6v/nH+IP4H/uH9vf2Q/Xf9
Yv0L/cb8ePw7/DT8HfwO/L/7evuy+8L7kPvE+wT8ivyt/Ez8i/y1/P38LP0v/Tr9kv02/n/+
mP56/i7+L/6P/oH+cP71/VX9Wf1P/WL9oP2o/aP9Tf71/j3/iP/N/7//yP/3/+T/DgDy/+r/
/f8RAIgAAQFCAUoBawGSAZ0BUQG5ACEAp/9y/87/yv8d/yv/pP/n/1cAywAFAUkBNAEcAT0B
UwGVAZYBnwH+AVgCYwJ5ArsCmQJiAisCAgITAiYCUwLqApYD6wM8BCoE+AMcBAQEnAMMA6YC
YgISAt0BHwISAmQBMgFnAZwBYwENAesAywB+AM3/HP+i/nX+hv6h/n/+kv7a/hX/RP9W/wAA
qQAOAX4BXwETAd0AiAA2ANz/vP+0/67/DQBdAG4AZQB5AOcAQwFpATMBlgDt/6v/q/9v/xH/
ef4C/sT9f/1O/fX8qvzC/Av9Yv2X/an90P0E/hX+Fv5d/pr+wv4Q/y//Qv9L/yv/gP8bAFgA
RgAPAAIAOQDNAH4BBAJxApgCxQLDAnQCUwLvAVgBLwEJASIBGQGdAHcASwATAAIAAQDx/97/
KgCoAOgA1wBaANX/vv9y//3+w/6e/lj+Bf71/UP+fP5X/jz+Kf4h/h/+Lf5o/nr+fP7F/g//
9f7O/t3+A/8+/5H/7v9RAJQAxAATAS8BSgE5AdEA0wDjALgApwCxALcAmwBrAFYARQATABsA
/P/r/w0AEgAWAAgAIwA5AD0A6f+s/8T/4//u/wQAlwDnABcBPgFVAWQBPgEQAc4AjgALAJH/
Nv/T/nb+QP49/ir+Pv5B/g7+wf1d/UD9lf1D/vL+Y//Z/zQAdQC4AO4AMQFeAc8BdAKxAosC
KQKzAW0BNwEKAeEAkgBQADkAAQDL/7X/Pv/2/sH+gv6g/rX+1f7W/q/+sP6+/s3+Jv99/57/
sv/T/wwASgDIACsBJQH1AMYA8wAqAQQB3wDaAOwAIQGVATACewJCAgkCswEZAbsAjwCNAFwA
+f+8/5D/f/+k/8z/7v84AFUATgBEADYAZAChANkA8QCFAPP/l/8K/3f+J/4a/jr+QP4v/iv+
a/6w/t3+Fv8W/+L+5f7x/sf+p/59/pf+6/4U/0r/i/+Z/7f/5f8jAHkAuwAfAWUBZAEaAfAA
/wDdAJUANQC9/zr/7v7B/p3+g/65/mT/0f8AABgADQA7AJkAxgDWALwAdABMAEEAZgBvAJgA
5wDKAMcA8gDpANIACAE1ASgB/wDQAP8AGwHwALgAhgAaAHT/HP8D/wr/Ff8V/0X/pP8JAHsA
DgG/ATACSwJbAlkCXQIjAh4CUQIgArwBNwHeAKYAogDRAPgADAH6APYAEQFiAcwBCQIbAtIB
QwG0AAgAWf/t/qv+Uf4l/k/+cf5x/lb+Qv5N/kz+ev7W/h3/X/9k/yP//P7y/h7/Qf8R/wr/
+P7f/hL/Yf/R/1IAawAUAO7/wv9b/xj///6r/lX+R/4q/iX+MP5c/m/+RP4Q/un9G/5l/sr+
B//K/oz+kf5z/l3+c/6Y/tP+4P4I/1H/qf/a/+3/AAD+/8f/jP+J/2T/HP/c/v7+Nv9q/6r/
tv++/9D/0f/n/yAAMABAAA0Aqf99/3T/qv8aAGkARQD6/8j/3v8yAHAAxQCHASICRAJxAogC
YQIdAvAB0AGZAYoBqgHFAdYB7QHYAcsBtQFpAUABFAG7AHYAegDTAD8BQAEpAUoBOQEDAd8A
kwAkAM3/eP97/6X/nP/O/xoATQCyAEsBvQEXAj8CMAIoAhoCMwJPAlcCbQI2AoEB3ABiAPb/
vP+p/9r/0P+U/4//j/+s/8//2P/v//n/0/9d/xL/Kf88/2n/e/91/3f/Wv8z/wX/wf6I/nb+
g/6v/sP+3/7o/r3+pv69/ub+v/5u/lf+Sf48/jL+VP7g/lX/j//b/yIASABxAI0AdABxAKAA
nwB/AFIACgDV/0P/s/5s/kn+cv6f/tD+8/4g/4f/9/93AOcAJQFUAUgBPwEqAccAfgBEAP3/
o/8z/8X+Zv77/ZH9Vv1i/av9zP3w/Tj+jf7j/hL/+/7V/gH/JP8d//f+2v7Q/tz+Ov+F/5H/
oP/Y/+j/3v/V//H/PgBoAHgAjwC+ANIA7wA3ATYBAQEZAYAB6wHqAagBhgFjASkB3wDdANQA
owCLAGoAbwCMAJYAwAAPAU8BiAGeAXABHAHFAH0APwDL/07/BP/E/tb+Sf+m//L/UwCuACIB
fQG6Ac0BuAGWAVIBFgG5AEcA3P94/xz/5v7k/uz+D/9L/4//y//+//P/5f/2/xYAKwA1AIwA
0wDVAJsAFwB5/wz/w/6d/pP+ev6p/uz+Qf+j/wQAhAC7AJgAeACSAIEASwAgAAAA7/8CABAA
DgBpAOQAQgFkAXIBcgFtAT8BDgFWAbwB+wHaAacBXgHoAHAA/f+7/7T/rv+c/5//gv+s/+3/
NAB6AIgAlAChALMAdQAiAO3/u/98/z//HP/z/rn+b/5M/ln+Yf6O/rL+wv4U/2H/wP/0/w8A
NwA2ADIAIQAOAPf/BgDx/7//nv97/1f/UP9L/xz/+v7V/hr/RP80/37/uv8EAFsAgQCVAIIA
DwDK/9P/i/8g/9z+y/7P/q/+rP7X/hD/df/l/zsAugAcAQ8BKQFtAWIBJwEVAQsB0gCZAHkA
VQAYAPn/zv+z//n/EgDy/wMANgB2AIgAmgD7AA0B0gCDABkA//8TAM//ZP8U/8r+u/6+/rr+
yP7U/vn+Jf9F/4//pP+Q/6//s/+r/6v/u//U/7b/av87/yz/R/+U/5j/av9P/zD/Iv89/1n/
cP+I/3r/rf/r/7r/lf/H/xIAWACxACUBmAH4ATcCdAKuAsICzwKXAuUBLgG0AGwADwCi/23/
Wv93/4r/kP+l/7j/5P/+/9D/g/+K/4z/ff+Q/4//fP96/4j/cv8e/6j+Sf4G/gD+//0q/n/+
z/5G/0b/Vf/5/2QAuAAyAZcBxQG3AacBtAHFAasBnwGhAZ4BmAFSARIBAAHfAOIABAEIAQMB
6QAFARsB1gCkAG4AQwBQADAAAAAOAOf/e/84/yD/Hf89/2//vP8OAA4A8f/d/93/3f+j/3T/
jv+j/4j/g/+C/1X/KP8n/0v/Zv9i/3T/r//o/xkAIwApAGIAaQBoAH0AdQB5AHMAkwC7AKIA
lwB6AGgAqQCbAIIApACiAMAA5AD5ABIBHwEAAdIAtgDDANkAvgC3AMUA0gDbAN8AxwCnAFAA
4P+j/1T/9v6P/mH+Wv5B/jP+Pf5L/mf+kf60/uv+Av8V/xj//P4U/07/Zf+Q//n/VgCnANYA
DAEiAfIAuQBnAO3/kv+Q/6P/x/+3/33/hv+n/7v/tP+U/27/U/8w/xD/QP96/3H/TP8//yz/
6f7I/vn+R/9+/5T/mv+6/+T/2//Y//T/NABmAD0AOgBzAGUAYwCDAHoAdwB5AGgAUAApAOD/
qf+Z/5j/wv/d/97/tP9d/0n/Kv/l/qX+mP7E/vf+Qf+s/yoAYABpAG4AlACUAEkAMQBJAE8A
LgAzAFgAqgCuAEIA7P+R/1j/FP/T/sD+1P4N/zn/WP96/5v/oP+Y/3r/Qv80/4r/7f8OACcA
QgBYAGYAbwCLAKoAuQDLANYA2ADfAMEAjABUADkAFQAGAFQAjACVAKYAxgDHAN0A2QCsALUA
mACLAKMAxQDQAL8AuwC5ANYAAAErATUBKQEAAdoAuwC2AOwA9gD4AA4BAAHcALsAowC6AMUA
tADCALAAegBQAA8A4//h/8z/vP/b/woAMQBGADUAMAAbAL7/cP9m/3v/i/+i/77/8v8xAF0A
gwCAAD0A4f+E/z3/+P6k/mb+TP5a/kr+Qf56/rf+Gf9s/2v/aP+X/9//LgBHADgAKwBIAGwA
SgA+ABoA3P+9/6j/mv+a/6r/tP/G/8//9P/9/+v/9/8AACIAKgAgAB4AEgDp/6n/of+j/5f/
gf+J/8T/6/8MACgAKQDs/5n/ef95/13/K/8a/wP/E/8+/1j/ev+r/+H/3//b/8n/vP/V//L/
HwApADYAOAARAPX/6f/6/yAAKwAFAPz/JwBaAH8AnwDJAL0AcAAaAOT/3//f/8//z//l////
IABgAIAASwAQAPr/5f/D/7T/uv/F//n/TACTALEAoAB2AFEASgBpAJIA0ADeALkAwgDVAM8A
1ADAAJcAhQB3ALAAtgBVACEAEgD1/8L/yv8bAHAAnwCxAKQAmgB5AEIAUABsAHEAZQBgAGoA
awBnAFYAbAC5AOMAEwFEATIBJwECAcQAjABAAA4A0v90/2X/j/+d/5v/j/9v/13/YP9i/3r/
mv+w/6v/vP8PAFcAcwB9AH4AdQCHAHMAQwAXANf/kP8X/6X+kf6l/pX+gv6Q/sn+2/7Q/tH+
yv4F/0f/h/+5/7//vv+Z/3//g/90/1D/T/9//4v/Z/9f/3D/df9p/07/Mv9D/37/p/+e/37/
f/9Z/yr/Lv8z/2z/h/9N/yn/H/8O/xD/OP9r/6b/1P/U/83/1v/0/yQARQBVAGsArwD2ABoB
CgHcALEAjQCHAIIAkQB0ACsAGQAoAEoAbACSAIsAZwBkAFYAQAA3ADMAFwDt//H/JQBGAFMA
dQCJAG8AVQBjAIcArgDJAIcAJQAgADoAOgA1AD8AGQDu/wYADAAYAFIAgQCHAIsAmgC4AO4A
DwEHAdIAggAtABsACwDR/5v/bf9h/13/a/98/5L/uP/p/wgANABIACYAOABaAGsAYQBoAJMA
nQCYALYAyQDCANUA7gDxAN8A2gDQALAApQDFAMQAlACBAHYAZgBxAIEAfQCTAKcAlABrAEQA
EwDL/5f/j/+E/4D/nf+0/8T/q/+P/4j/df9t/4b/vv/4/xIAAwDY/7L/v//C/73/8f8jABcA
BwAsAEsAUwBXAE4AVwBtAGUATgAcAO3/vv+H/3X/Wf9S/zv/+/7k/vP+/v4P/yr/GP8H/xb/
K/8v/zL/V/9l/0b/L/8g/yT/Rf9Q/07/Uf8z/w3/Df8L/xv/NP8//2j/tv8cAGgAtwAFASUB
NwEjAc8AhABxAGAAKgDn/8P/uP+u/5L/kv+r/43/ef+U/7H/wf/S/9X/xf+8/8b/0P/b/9L/
tf+p/8f/8v/u//j/DwAiAEYATQBOAGMAXAAkAOv/2P/S/93/6//m/9X/rP97/zT/Ff8h/w//
Hv8+/z3/Of8t/xf/KP9T/4L/qP+//8n/3v/j/8v/1//7/x0ANgBkAIEAYQA4ACcAMwA3AEkA
eQCVAKoAxADMAK8AmACkAI4ASQAAAOX/0v+//8P/yP/w/zkAmwDmAP0ABAEVAR8BGAEQARQB
OgFbAV8BYQFYAVEBOwH9AOEAyQCcAHkAZgBVAEYAYgBlAFoAiQC9AMUA1wALAQgBzgCbAG8A
PwAJAO//6P8GABcAIgBNAEYAQQBFACoAHQAzADgATgBSAEkAWQA5ADQAHwD//wkAAwDi/9r/
/P8BABYABwDZ/6j/dv9e/0L/N/8w/1H/X/9T/13/Xv9d/0X/Pv8y/zv/Yv9y/4z/z/8WAEAA
WQBMABkA+v/o/7b/g/9z/13/K/8c/yv/G/8W/0H/Rv8c/x3/Rv9h/3D/hP+Q/6b/tP/J/wgA
IgA2AFQAUgBJABAAp/9S/yn/E/8T/wn/Ev8l/yX/Pf8+/1D/Zf9u/3L/W/9E/zP/SP9G/1r/
g/9+/3X/dv+B/23/Xf9l/2n/Tf9R/6T/3v/z/xMATQBSADgAOAA5AB8A4v/G/8j/rv+n/9H/
7f8UADsATgBrAHAAfQCuAN8A2ADSAOUA8gD0AOMA6AD5AO0AuwCzAMQAvQDKAOAA8QDnAOYA
DgEhAS8BTQFSAT4BQQEwAQEB8ADWALcApACRAG8ATgA+AC4AJQAFAO3/1P/E/7D/qP/N/+r/
DgApAF0AeQBYACgA8v/Z/8D/tf/A/9n/BwA6AEkAMgAeAAEA4P/M/8L/rf+c/47/Zf9D/y7/
GP8f/z7/WP9n/4f/rP+v/7T/0f/6/xsALQAtAB0ADwAEABEAKQApAA0AAwAUABkAEAAEAPb/
1/+5/7n/2v/q/+3/8f/v/xAAQQBbAFoAWABVAD8AMwAmAAoA9P/Z/63/gP+L/7D/y//W/8b/
wP/C/8X/2f/5/xMAEAD6/wAACgALACEAHwAgADkAOAAYAPz/3f+x/5r/eP9F/yX/Cf/z/hz/
Wv95/4z/mv+v/6j/lv+A/37/mP+w/73/yf/c/9T/4/8AABEADgAkADUAKABAAF8AZgBHAEIA
TgBIAEIATwBXAFsAhgC7APMACwEJAQMB9ADiAMgAwwDLALoArgCdAHwAcQB1AHwAcgBqAHwA
kwCXAIEAbgB2AGAAJgAHANz/qv+g/5r/kf+W/6n/v//C/7L/nv+K/4L/fP92/4j/uv/a/9b/
2v/X/9P/zv++/7j/sf+z/7b/uf+4/6H/gf9//3H/Tv9P/1j/bf+E/6H/zf/w/+j/0P+v/4n/
fv9w/3n/k/+i/7z/6v8YAEkAcQCFAIMAZQBFADQAMAA0AB8ADgBDAIEAjQB9AHAAcABgAEYA
OAA1ADcAQAAuAAQA9f8OADQAPQAhAPv/xv+G/2H/PP8u/zf/Ov9t/6P/tf/o/x4APABnAHYA
ZABpAHwAaABDACwACgDf/67/mP+s/7v/3P8YADkAQgA7ADAAJQAfACQAJgAGAOD/1P/F/8f/
2P/k//3/HwAxACgAJABBAF8AdgCVAKMApgCSAIAAdABVAD4AKAAlABoA5P+v/4j/df9r/0r/
N/87/0n/av9s/1T/Xv97/4//oP+s/7b/vv++/9D/0v/D/73/tv/A/8T/t//A/8//0P/c/+3/
AQAbADAANgA7AF8AawBmAG0AbABeAFYAXABNADsAJQAZACQANAAxAB0AGwAUAAEA6//q/+b/
4v/u/+T/2//n/+3/4f/V/9L/2//k//7/FAAhAC4AJQAVAAoAEwAhABgAEwAmAEIAbwCoANEA
5wDxAOQA0ADPAMEAoQB2AFUAWABaAFkAWQBSADkAEAAEAAMAAgAQABcACwD//wUAFwAkABwA
LgBFAEAASgBXAFMAUwBrAHcAgwCaAKAAnwCUAH0AWgAyAAMA6v/R/7H/o/+c/6T/v//Z/+L/
+v8MAA0ABQD9/wMABADx/9//2v/V/8//vP+v/6j/lP+K/4H/j/+u/8n/4v/g/9T/2v/e/8v/
v//H/97/2v/C/7z/rP+W/4P/eP9o/17/XP9Q/0//R/81/yD/Kf9F/1j/bP96/57/u//L/9X/
x//D/8L/wf/E/8P/wf+9/6r/pf+i/4r/gP91/2z/Z/91/57/t//I/8f/tP+p/6j/rv+o/5X/
kf+c/6D/o/+q/7v/1P/r/wQAFwAqADMAPwBFADwAOQAuABUA9P/e/9r/2//h//j/BgARACUA
LAAnACYAOABAADkAQQBSAGAAXwBWAEYAQABSAGAAXwBhAFwASAAXAPb/+f8AABsAPwBHACMA
CwAOAAkABQAGABMAJQA5AFsAfACOALAAzQDZAN8AzQCjAHsAYABDADIAFAAGAA8ADQAJAAkA
HAAjACIAIAAjAC8AQgBJAEIASwBYAGcAfwCfALYArwCaAJ0AlQB+AHUAbABsAHsAhwCHAIgA
iAB7AG0AdQB6AFsAOQAoABcAGwAkACgAQgBbAGoAXgBPAFUATQA+AEIAQwAxACoAKAAbABAA
AwDy/9//zP+2/6D/nP+o/7X/u/++/7r/qP+S/3X/Wf9E/zH/L/83/zP/P/9T/17/af9k/17/
Xv9e/2n/df9y/1//Tf88/0H/Sf9C/0j/Sv9S/3D/jP+W/67/yv/o/xwARgBMAEAAQAAzAC8A
OQBBAEoATQBTAEYAJAAOAAgA6f/b/+f/5P/k/+T/5f/Y/9j/3P/O/83/0f/C/6f/pP+n/6f/
uP/R/+T/8f8DAAsA+//y//X///8CAPf/8//2//P/6v/h/+f/9//9//T/1//M/9f/3v/y/wAA
DAAZACgANwAyACoAJwAnABwABwAAAAoAEQAPABIAHQAjACYALgAtAC0ANgAwABgAAwD+/wcA
DQAMABYAHAARAAIA9v/u/+P/1//q/wgAFAATABoAKQAwAC0AJQAYAAAA7v/b/9f///8gAD8A
YwB3AHQAbgBwAHEAbgBpAHEAegCCAH0AdwB2AG4AcQB0AHYAcABiAFsATAA2ACcAIwAmAB4A
DgAHAPT/3v/E/7H/p/+e/63/t//B/8v/0v/c/+j/8P/z/+r/3f/b/9n/1f/L/8b/uv+3/8L/
xP/I/9n/4//n//H//v8CAAAADAAQAAUA/P/3//X/7//p/+//9v/8/w4AGwATAPX/3P/L/8r/
2v/u/wUAAgD9/wEACQARAA8ACgD5/93/2f/f/+D/6P/7/wEA/P/9//z/9f/3/wAAAAD///r/
+/8AAP3/AgD///P/8v/1//r/+P8CABMAEwARABcAHwAtADkAMgAoABoADQD+/+//7//2/wEA
EQAdABkAFQAUABsAHwAUABIAFgAdABgAFwAdACkANgAwAB8ABgD1/93/z//Y/9v/2P/g//f/
9v/k/+D/3P/Z/9T/0P/N/87/2//p//X/BgAOAPz/7//s/+f/4//t//T/+P8DAAAAAAAMABwA
IAAoADUANQA7AEIAPQAiAAwADwAlADAANQA0ACgAHwACAOz/3f/Q/8r/wf/B/8v/1f/i//f/
AgARAB0AKQAvACMACADy/+//7v/8/wEAAAAFAAQA/P/4/wEAAADv/9j/0v/J/7r/uv+7/77/
vP+x/6b/o/+h/5//m/+X/5v/pf+w/7v/yf/X/9v/2P/R/8j/vv+x/6j/qv+t/7r/wv/K/9f/
1//V/8z/y//M/8z/zP/P/+D/9v8EAAoAFAAPAP///f/5/+3/8P/7/wcAEQAhADUARgBTAFMA
TQBFADkALgAtADEANAA1ADUANwA3AD0AQwBBAEQASwBHAEQAQQA+AEYAVABaAGcAfACEAI8A
lAB5AFoARAA4ADEAKgAmACMAJQAqADYARABPAE8ASQBKAEQAQwA/AEUATwBbAGwAZgBeAE8A
PQAyADAALgAgAAoA+P/v/+r/7v/1//7/AQADAAAA7v/c/9X/1//d/+//AAD+//f/8P/n/+3/
/f8AAAAA9P/j/9//4//f/93/5P/v//f/9f/1//T//P8FAAcAAAAAAAEA7f/Z/8f/xf/M/9D/
yP/E/8P/wf/K/8z/0v/R/8z/yv/L/87/vv+0/7L/s/+u/6L/mf+W/5b/m/+i/53/l/+O/4v/
lf+e/5//nv+a/6D/sP+//8r/1//n//D/9v/x/+b/4v/j/+P/5v/x//j//P8AAAgAEAAUABEA
CwD7/+z/6//o/97/1//Y/+T/7f/m/+L/3f/a/9T/1//n/+r/7v/0//n/9f/z//n/AAADAAYA
EQAXABoAFwAVABUAFAAWACIAMgA+AE4AWwBlAG8AcABoAFoAVQBWAE4ASQBDAD0APQBFAFcA
YwBdAFIATABHAEkASABOAFcAXgBlAGQAWABJADkAJQAcABsAHAAeACAAHwAZABMADQALAAYA
/v/1/+v/7f/0//b/9P/3////AAABAA8AHQAtAEIAUgBbAFUATgBOAEoAQAA3AC0AJgAlACQA
KgAsACQAGwASAAwABwD8/+z/5f/g/93/3P/d/+L/6f/z//n//v8AAAMAAAD5/+z/4//e/9T/
yv++/7n/sf+n/6b/rf+z/7f/vP++/7//yv/W/93/4//c/9r/3//r//n/BwAQABQAHQAeABUA
CQD8//L/7//s/+7/7f/n/+n/6v/v//T/7v/d/9f/1f/V/9j/2f/i/+v/7v/q/+P/1//G/7P/
qv+l/6X/pv+n/6r/rf+5/8j/1f/g/+v/8P/1//r//f/+/wAAAgAGAAsAEQATAA8ACAAAAPv/
+v/9/wAAAwABAP7/AwAEAAEACwAfACcAJwAnACYAIwAcAB8AHwAYAA8ABgACAPv/6//g/9z/
1//T/9L/0//Y/93/4//l/+L/4f/o//L/+f/6//n/9f/x//H/+f8HAAkACQAPABoAJAAmACcA
KwApACQAKwAzADUAMwA0ADMALgAnABwAGgAZABkAGgAcACAAIQAhACYAKQAmACEAFQAIAAAA
//8AAAAA+f/3//T/6v/h/97/4f/o//D/8P/s/+n/5f/j/+3//P///wMACwALAA8AGgAkADQA
RgBQAFUAWQBgAGoAbABoAGgAcAByAGkAYQBVAEgAOwAxACkAGgARABAAEQAQAA8AEQAVABQA
FgAYABcAFwAPAAIA9v/r/+L/2v/W/9b/1f/T/9j/3P/W/8z/x//K/83/zP/O/9H/yv/H/83/
zv/N/9P/2//h/+b/6v/y//T/9P/2//n/AQAHAAkABwAEAAUAAgD7//r/AwAGAAgACgALAAwA
CQAKAAoAAwD7//L/6P/b/9D/xf/E/8f/yP/P/9j/3P/n//L/+f/4/+3/6P/j/9z/1P/Q/8z/
xv/G/8f/0P/W/97/5//p/+v/6//r/+3/7P/l/93/1//X/9b/1f/a/+D/5f/o/+r/6//x//f/
+P/2//f/+v/7//7//P/4//X/7v/n/+f/5f/i/+L/4f/j/93/3P/i/+P/4//l/+f/7//3//z/
AwAHAAwAFAAcACYAMQA2ADkAOwA6ADkAOAA1ADAALgAvADQANwA2ADQAMQAqACkAKgAuADUA
MwAuACoAJQAoAC4ALgArACwALQAsACgAJAAgAB0AIQApACsAJAAeABsAFgASABMAFQAWABUA
GQAbABcAFQAXABkAGAAbAB4AFwAUABUAEQAPAA8AEQARAA4ACwAHAAAA9P/w/+//8P/x//D/
7v/u/+7/6//s//D/+P///wMABgACAPj/8f/w/+7/7f/x//j//f8CAAgADwAYAB4AJAAnACcA
IQAdABoAFAALAAMAAgAAAPj/7v/s/+v/5P/c/9H/yv/D/8X/xv/L/9H/1P/W/9f/2v/c/9v/
3f/l/+v/7f/w//H/8P/s/+r/7P/s/+z/7f/p/+H/3f/b/9v/2//Z/9r/3f/l/+v/7//1//j/
+//5//b/8//z//H/7//z//j///8EAAQABAAEAAcACQAOABQAGQAhACkALwAvAC0AKQAeABYA
EwARABAAEQATABYAGgAdABoAFwAXABMACwAGAAQAAwADAAEA/v/4//L/7f/s/+n/5v/n/+T/
5//u//X/9//5//z/+//8//v/+//7//v//v/9//3//f/9//v/+f/4//X/8v/y//H/8f/z//b/
+f/6//3//v/+//z//v8AAAIABgAHAAkACgAIAAIA/f/3//L/8f/y//T/9f/2//b/+f/9////
AgAEAAgADgAWABsAHAAcABoAFwASAAwABQADAAYABwAKAAwADwAQABAAEAAOAAwADAAJAAkA
BwAFAAQAAAABAAAA+v/4//j/9//1//L/8//0//f/9//z//P/8P/x//L/8P/w//D/8P/u/+z/
7P/w//X/9v/4//v///8AAP//AAADAAEAAgAEAAYACAAJAAsADgASABMAFQAWABQAFAAWABQA
EgARAA4ADgASABgAHAAhACUAJQAhABwAGAATAA4ADAAMAAoADAANAAwADgAQAA4ACAADAAEA
AAD+//3/+//4//T/8//1//b/9v/2//T/8v/y//D/7//w/+//7f/v//D/8v/z//L/8//0//f/
+f/3//j/9v/0//L/7v/t/+3/7P/v//T/+f/9//7//f/7//v/+v/5//j/+P/5//v//v8AAAQA
BQADAAMAAQAAAP3/+//8////AQAEAAQAAgD9//j/9f/1//b/9v/1//f/+f/+/wAAAAAEAAgA
DAAOAA4ADAAMAA0ACQAJAAgABQACAAAAAAAAAAAAAAAAAAAA/v/+//7//v///wAAAgABAAIA
AgABAAIAAAAAAP/////8//v/+f/6//v/+v/9/wAAAwAEAAUABAAEAAYACAAIAAcABwAJAAkA
BgAEAAAA/v/8//r/+v/3//b/+P/7/wAAAQADAAcACQALAA4ADgAPAA0ACwAKAAkACQAGAAYA
BgAGAAgACQAKAAoACgAIAAcAAwAAAP7//P/7//r/+P/2//P/8f/v//D/8P/w//D/7//x//H/
9P/6//7/AgAGAAkACgAHAAQAAQAAAAAAAAAAAAAAAQABAAAA//8AAP//AAABAAIAAAD///7/
/v8AAAAAAQACAAMAAwACAAIAAAD+//z//P/7//z//f8AAAEAAgAEAAUABQAEAAEAAAD///z/
/P/8//z//P/9/wAAAAACAAEAAQAAAAAAAQABAAIAAgAEAAMAAwAAAP///f/5//r/+//8//3/
//8AAAAAAAAAAP///v/9//v/+//5//r/+//8//////8AAAIAAgADAAIAAAD9//r/+f/5//r/
+//6//r/+//8//v//f/9//z//f/9//7//f/9//7///8AAAAAAAAAAAAA///+//7/+//7//v/
+v/5//n/+v/5//n/+v/5//v/+//9//7///8AAAAAAQAAAAAAAQABAAIABAAEAAYABwAIAAkA
CQAIAAYAAwABAAAA//////7/AAAAAAEAAwAEAAYABgAGAAUABgAGAAUABgAFAAYABQAGAAcA
BgAHAAUABgAGAAkACgALAAsACgAJAAgACAAGAAUAAwACAAEAAAABAAAAAQAAAAEAAgACAAEA
AQAAAAEAAAAAAAEAAgAAAAAAAAD///7//P/8//r/+v/5//r/+//7//3//f/+//7////+////
AAD//wAAAAAAAAIAAgADAAQABQAEAAUABQAEAAMAAgACAAEAAAAAAP///v/+//3//f/+////
AAAAAAAAAAAAAAAAAAAAAAAAAAD////////+//7//f/9//z//f/+//3//v/+/////v///wAA
//8AAP/////+/////v/+/////v//////AAD//wAA//8AAP////8AAP//AAD//wAA//8AAP//
AAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</binary></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX123">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">10</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordlunge.wav</url></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX124">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">27</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><binary>UklGRqRLAABXQVZFZm10IBAAAAABAAEAIlYAAESsAAACABAAZGF0YYBLAAAAAAUADAAPABQA
GAAiADIAQQBLAEsARgBIAFgAcgCGAIoAfgBoAFgAWABhAGcAYABcAGMAcQB4AGcAPAAGAOT/
4f/q/+f/1/+3/6b/wf/0/w8A8f+b/yf/0f66/tb+Bf8f/y//Rv9b/2L/X/9N/zf/Dv+7/mP+
Gv4A/iX+d/7V/h//WP+A/5r/uf/c/wEANQBVAFEARQA1ADgARgBHADwAKQAsAE0AeACSAIsA
hQCdAMwA8QDkALQAeABOAGUApAD3AEABXgFJATYBJgHyAMEAkABoAFAANQAXANj/ef8m/+/+
1v7g/tr+p/5f/gr+t/2B/UD9+fzS/Kv8VPzY+5T7uPs3/LH85vzS/H78HfzU+6L7evt3+2n7
SvtZ+5H7HfwE/QP+6/5g/xj/av7k/d/9T/4A/8T/ZgDrAGsB5AFxAgQDhAPVA9IDyQPZAxYE
fgS5BJQERQTkA0oDrwIEAloBAQHnAAABLgEqAeAAVQCP/+j+kv6F/pv+m/5x/if+Qv4U/ykA
vgBaAAT/X/1d/Fj8Df3Z/WL+aP4e/hz+YP6b/kH+V/1K/JD7h/sM/MD8IP1H/Yb9Df7P/mP/
ev/8/m3+K/4q/k3+d/6t/iP/5v+DAI4AGwCl/4H////WAKYBUwJ1AiICCgJ4Aj4D+gPqAywD
fAJRArMCggNABFsEAQRVA4cCJQJxApkCHQJvAdkAkwCVAI8AQgCX/+T+QP6R/TT9B/3r/PL8
Kv2p/S3+Fv76/Gn7Dvps+fD5MfsZ/Fz8PPzu++T7+Pv7+wn80vs7+wj7kftv/Fr9AP4f/v39
N/6u/sn+kP5W/lz+CP8mABsBlwF6AfEAegCKABUB0AFAAkcCEAL3AUoC7gLJA3MEygToBP0E
ZgX1BUEGcQaoBucGKgd3B9MHzgdoB7kGBgaeBYQFgQVRBbcE6QMMA5wBTQB6/7L+Jv7Q/RX9
Avwd+xL6b/k/+ZD4nfdC9qP0ovPb8xr1rPZE+BD5FPkA+Q35RPl7+XX5UPl3+T76wvsq/Wf+
BQDzAekDdQX8BZcFPgVPBSAGoweOCUoLGgxmDI4MSw2JDroPuxCvEKUPyg6yDscOpA4kDigN
BwzuCt0JOgk6CXQJkwmaCcUJxgkECXAH3AWiBMADqQPjAxsE5QO2AxwEoQRoBYkFSwR6AQn+
LPuI+bz53/o7/AL9/fy4/EL8EfzO+x/7Qvoy+cf4Rfng+Vj6G/tH/Mv9XP8YAMn/3P5M/qT+
n//v/1H/R/9eAA0CgQOvA50C6AEeAukDqwYQCVwKxgkhCMAGDQffCJIKmAr3CPMGBwYZB1wJ
BwsWC30JcAauA0kC4QGHAX4A9P6E/RT9zv2O/gz+xfxs+1b6rflP+dD4y/cP95n3Ufko+8n7
/fm49vbz7fIg9L32BPnO+c75kPl1+dL5Zvqx+kT6Qflx+Nr4+fnV+mX7tvvt+1n89fwe/aP8
QPxn/Ov9RwAbAjwDSwP7AvwCIQO/A3sEtQR+BAIECQSCBA8FnwX9BXYGogY6BroFXgWLBH4E
agVnBooHFwgFCCoHMgaaBY4FrQUUBUYEaAPcAff/Xf58/JX63PgZ90D1QfSx847yfvHW7y/u
M+1I7EXrMOpN6SnpD+qk64Dt8+4l7ybuJ+3d7LftF+/w71DwnPC+8ezz1fbH+gz/XAI1BKwE
MgSBA30DVwReBqEJ/AwiD7wPzA9jEGgRJxEhDyYMowkTCYgKmQ1tEJURzRHSEfkQog9jDtQM
AwsTCTsHSga1BmAGDQTBALP95PtS+1T7JPu1+uP6hPws/94B4gOTAx8B/P25+tL4ZPif+cX7
g/1o/7IA5gAwANH+5vz6+p352PjU+Pv41/gt+Uv7gP52AVQDPAOdAbAAGwEbAksDGQMgAtIB
4AKNBSwIGAkrCMYG/AVxBmAIdgruCmgJLAcGBtIGMgidCG4H4QT1AqACVgNUBJkETQNiAMz8
+PmO+Pf3ZPcz9kn1dPVZ9h/3bvaJ9HvydfC77m/t/+uE6pjpPOlK6prsbe5A7mvrz+f95azn
TuxA8ZT0+fWU9pf3iPgM+bb5Tfnb9xz35/cA+qr8av5u/oz+r/88AYUCUALSAK//fgC7Aw4H
8wjOCNgGMwVgBB0FRgeqCKwIDwhKB4QHAAlICtEKdwpsCfEHLAdxBwYIwgg8CfAJPwprCnsK
RAmVB/AFugQVBKEDsgKIAVsAPf4K/PD5NPcU9M3ww+2k6y7raeuI61/rFuvo6nPqo+lD6JDm
Y+Rd46PjmuQo58jpC+xe7sLvffD78fDy5vIB89DzzPV2+En7Gf7cAakFuAjICggLZQqzCSgK
uAvIDewPeBFSEokSUxNUFX0XtRkBGwAafRjXF14YmBkxGlwZjhf9FPgR3g94DokNFA0MDUoN
aQ1oDJEKpQi2BlEFZQRHBLUEKgWdBacGaQh/CjcMwwwcCwUIxwTmARMB/AFzBBcHuAgICaIH
RwVtAykDCQMYA34CiAHPAIoAHwLjBBkINwpyCh0J8wdoB0YHCAiKCCMIiwaOBXMGfQiFCj4L
dQosCawIoQnXC90NkQ5wDcELogoDC6wMQQ1CDH0JNgc1Bm8GZQfWBskFhwPvANn+3fxP+8L5
c/j89rL23Pd7+Mv3kPa99P3yTPLT8QfxAvBN78nvLvJb9c33tfi893j1cPOR85j2oPrM/SYA
fgGuAlUEawURBvYFkAT7AhgCjAK+AyEF2AVxBesETgQ/A/sBrQBA/w//4/+8AcsDUgQgBDgD
dAJ0ArsC2ALRAoECGgKTAiIDHANcApYB/QAaALf/F//j/eL8kfwh/eL9d/4p/g/9S/ug+aj4
D/jH90X2tfS085LyU/HZ70PuQuyL6nbpVOk+6Q/ps+jc5xLnSuZx5QfksOJw4Q/gXt/+37jh
6uP95ZrnC+lr6qXrMe2O7pnvgvCI8TvzhfTB9m76Gv6GAckDGQT7AjsCbwF0AeYDdQboB9kI
NwlQCR0Kags2DE0MPgzLCz4LswumDJUNGg5cDTcMRQuRCcYH2QYqBm4GCQg/Cd4JWgmcB3AF
/ALAAVEB+wA1AXoBHgLvA0oGowikCsMKagl+B1kFbQT7BMIGdgn/C84N0A40DwoPOA6rDScN
swxJDTgO8Q59DyIQmBGsE04VEBZrFfAT9BLKEh8TExMFEmUQ1w+REE8SuRMVE58Rkw/FDZUN
7A0TDuwNrgwPCvQHmwfwB54H6QUBA1IAR/7k/A/8J/rS99b1YvNO8fjwAvEL8Izv/u7C7pzv
Ye9x7djqrOlH6gvsMe6v79jwYvI39eL4Jfy4/rz/r/3n+cP2YPaO+NL6WPy5/AT9jP0//iz/
V/9q/+v+of3w/HH9mv5V/9P/oQCtAlkFQweOB7kGDgbBBmAJyQocCwkKhgfLBSoE/wP3BF0F
XQTOAnkC5wLbA5gEhgQSBEkDnwKuArwCdgJ+AkkC0gGRAYABPQEAAP39LPuy+Gr3f/bl9Tb1
APS78q7xQ/B/7qPshepp6IrmkeVK5SHl2eTa4x3j1+Jb4sDhDuEf4LHfXOBT4f7i4eTn5p7o
p+ll6qjqEutx6oTp4Oi46EnqE+w/7bLu8/B28/b1nPf19wf4GPiN+Ar6hfyX/zYC/gLsAuYD
4AVJCOcJ+wn1CF4IAAn5CSgLugtuCyIKhQirB08HtweCCN0JVQuRDG4Ncw3gDLsLEgtDC/0L
CA26DYAO5w9oEQkTsRSuFbYVhxR4EjEQ6w6ND4URThMgFLYU7hSiFJUUihSWFPEUhRTNE04T
KBPRE+oUeRZyFz4YfRgBGI0XfxY7Fg4WnhR0EgoRqhDnEFkRQxBQDkUM4wrFCj0Ljws2C54J
hQYPBBgD/ALhAkcBuP4I/OL5PfnQ+Az4F/df9QjzPPA47ojtUe0J7b3s1eyO7Zjuau/j793v
1O8/8OrwT/G78c7ylvS79j353vtC/RD9kvsJ+h36RPx+/6MC2gTfBfsFSQacB8YIgQmlCRsJ
zQhcCfAKewzvDB8N3gxyDHQMQwzJC1cL1wtxDNgMyQwXDFULYAqjCQsJdwi0B5QGyAW4BdsF
BgZ1BSgEwgLmAWIBuwCDAMr/zv4h/u/9u/1Z/QT9tvsQ+pn4yfeJ9+D2PPa59Tj1p/TG89Xy
jfFt8B/v2O1V7cfsFuwB61zq1emo6aHpzejz57rmkuVp5V3mm+cA6QDqh+oe66zrPOzV7CHt
h+zK6xHr/urz627t5+6/8LbyGfTt9J/0R/QI9Nf0ZvYi+Df6WPsY/MT8h/2I/sX/gwC0ALkA
YgB7APMAZQGWAQ8B3P9D/r78C/zp+9j7//v6/Gb+Pf9w/0P/+P5k/kv+6P6a/00AZQGCApED
uAUDCPAJIgtYC/4KEArFCYoKmwyUD2wS4hQnF5EYeBmzGqIbtByqHVceHR+zH4Qg6yGhI38l
Hie1J2onQCaiJKcjsSIxIeMe4RuTGXQYLRigF9sVYhOHECAOLw1eDWoNjAwuCmYGHwNsAUgA
u/6m/A36x/d+9p/1vfTM81fy8u9F7XnqUehs54Tm3OXj5YLmGecx5/bmHObv5Xjmzubc5iXn
Dehm6Uzriu1M8Brz0PTQ9Cf0T/S39WT4q/ts/mIAmwFNAhID0QN1BMIE7gQ/BUcGRQhoCj4M
HA1vDcUN+g1dDlgOig0rDakNZA72DikP1w6kDT0MWAsiC28LRgu1Ct0JEAmsCJwIegjfB+MG
wAUvBY0EFATKAw8DRAJCAWUAiP/y/mP+p/3r/D38A/xr+4n6Tvnl9/j2MvbC9WP1tfQj9Lrz
lvPb8wH0TvPD8bjvYe0T68noPOdH5mblY+U85gjoOOr763ftVO6e7grvi++174/vv+9u8Obw
dPED8vzxkvE08Q7xz/DR8PHx5vLy8mzz9PMu9Of0aPUb9TD1cfVR9U31PPUC9Uj1yvUV9i32
X/bD9uj2qvfk+K/6IP2j/5cBAwM5BG8FWgcECKIIuwkHCpULOw1iDtkPAxH6EYMSbhPVFNIV
vha0F6cY0xk0G5kcPx6mHykhIiOaJKElHCbmJcYleyYmJ5cnYyjpKOQo0yjSKEIosycBJ8Ml
GyQEIgAg0B2HGzYZoxazE7QQ4A3/ClMIbAX3Afz+gvz8+Z73OfW48hDwq+2Q66jpdugb537l
8uMb4iTgSd7H3CXcNtxN3CfcWNtP2tTZ99ko27Dc9d1K3x/gxOBv4fTi/eVo6QHsSe3R7dPu
ivCz8dTyvPOe9BT2mvdr+Rb72PzU/Tz+U//oAMICQwQqBXMF8gWmBkMHEwiQCOMINgl+CckJ
5wnwCfcJngkACa4IrAhYCBkHTQWhA94CiALxAa4B7AGDAq0CLQK6AUkB/QDcAC0AMv9g/ub9
lv05/cP8N/zj+5z7Nft4+gf6wPmG+aT5uvlb+u36CPsQ++76ivsA/Iz7jPu2+2783P2A/pP+
wP4L/6T/eAD1AMoASABh/w/+mfw4+8P6dfqb+WL4evaw9HvzQfKP8dHx3/Fo8XbwZu+L7tXt
J+2d7E/sBuwl7Cjs3+uN60Xr0+oO6t3pNOq46jTrZ+uv60jsR+1G7kDvS/DW8CHxQvGo8bTy
VfMO833ya/JI87r0Qfaa94z46vgv+Sv6Dvxi/oIAewJGBC0GaghSC5oOCREbE9gUlxa8GMga
yRzqHiYh/CLZJDEn5CmvLFUvejEbMyg0FjUbN+s43jnVOrI7mDxZPcc9qz16PK86ezgvNmQ0
jzIwMIwtLivVKAwm1CKuH4wcFBnfFbkSRw9/DIIKYAhMBmgE/QIRAlwAoP3X+rD36PMm8fLv
xe+2793uwOwZ6nHoMuhu6VDr0uwc7fvsP+0S7hTwNfLM84X0yvSB9Qv3lfjq+Tr7//uy/Cn9
Hv6H/y0BhQLhAocCuAHfAaQCcQMcBPYDNwO3ArcCIgNBAygDVwNyA+4DcwS6BHsEjQOeAroB
+ACJAPX/+/7c/YD8QftF+rf5Svnu+N/4XPhV93r2VvZ89rv21/bL9sj20/Ys9x33w/Yq9jf1
cfTG9KL13fVN9j32Y/Wv9J70+PSN9Tr2XPZd9kb2RPZj9u32Nfhx+TP6gfqM+or6HfvJ+9z7
fPuO+ib5tvfe9qT2nPbC9b/zZPHw7pPsuuq96eHooedK5mzkROKH4K3fwN/a30bfsd4d3j/d
t9yy3KrcWdx+3Lvcvdwj3drd0d424Fnhc+LX49Dk6uWq5uPmoued6GrpN+rb6jPrn+td7Tvw
AvNw9Ub39/hl+p37MP1S/58BtwN4BYIGCQiDCpUNvRDDEgAU5RRLFtsYTxsSHYIehh9XIKwh
0CMWJuMnlinoKjUs8y1iLxIxJzN2NMI0BTWPNUk2YjfMN0w3izZSNSU0uzKZMB4u2SuHKXEm
SiNfH/MawhYTEygQmA26C8MKLgqNCC8GvAOgATMAQf8T/jT8nvps+UH5Zfrt+5L8KPsT+Jn0
kfK48hj0dvWf9cn0WfQ19A70WvTv9Hb1BfW78/DyDfRU9xT7Bv4w/8r/8ACbApwEnwbMCPQJ
6gr7C8AMrg20DpUPww8ZD3oO+g7PD9YQ2RAVEGgPAg5iDZINzg0KDWwLPgoWCTcIywedBj4E
YgHb/g/9W/yk/Aj9E/3y+2n67Pmz+r37Afw2/Pf7Qfsl+//7lv3F/vP+Kf6M/Nv6tfkP+kn7
h/uy+rv5rfke+gj7evzY/MX8wfzY+2j7Ifwy/TP+TP5p/eD7afpW+iT7efuj+rT42Pa39Uv1
ffWP9cb0pvLO727sHunf5rnk7OIE4c7eqtyd2uvYXNfE1b7TtNJF0lbSodKz0XnQhs9Dzj/M
Ocs5ysXI1sgGypHLQ80Pz0TQc9H60oDUI9aK2Jbb+92n34/gMuGU4lnl5+jw69DtPu7e7pjx
lfUa+c/7R/4DAdgDRQY9CLoKgg2ZD88QmxACEOMPDxEHE9kTCBQLFHMUFBaDGG4aehzcHq8g
fSJ5JBUn5CkTLOosYC2MLosvhzApMuE07zf0OWQ6OjrLOoc7CjsMOUg2WzPNMHQu5yvpKKAl
PSJ0HncaiRZjEp4NAglDBeQBqP8b/oj7QvjH9LzxA/Dc7o3ta+yN6hHoJ+Y+5Xbl2OVR5p3m
H+d56JLpROrL6oDrp+uj6hXp1uf45w3p3urZ7GPu+u9/8Q3zAPUF9xD5/frZ/Dn/4wApAjcD
RAQuBs0Hrwh3CE4I4Ag3CSEJQQhoBsMEDgSmBHQF4gR3BK8EDAVdBTIFzwQTBM8CIgIhAk0C
/wHyAFsABAC1/+L+kP3y/KH8W/wU/Qb+g/47/4cASAJcA5UD2gM7BF4EeQU8B2gIUwl1CpUL
eQx6DccNuA3mDRsOww5xEKwR3hFnESoQlQ+2DzARJhMQFAsURhONEjUSdRKUEgUSoBCTDhMM
XQm/BnYEiwKJ/0T73PYb8+XvLe3m6bXkaN8C25LXB9Ud0j3Pt8xYymLIfcYixbPDF8IqwQrB
8MFLw8vE3sVqxuDGYsdtyA3K+8uOzYzOOtA+0zfX99oa3kvhieRK6HbsvfDR9JL44/un/toA
GQNpBtMJJQ0SECQSqRRTF4cZqhsVHecdWB7PHjYgwyEMI+YjpSRQJVYlsCW/JqknPCjbKOQo
yyhOKfYpvSqrKxUteC4zL6gvli/ILqgtPSzcKvEpVCkcKAomXyOnIEwesxulGfoXZBW7EQAO
5gmGBScCOv/X/GT6RPe78+bvY+207A/t8exK66/pr+iZ6IXqN+0s73Xx//Pl9cn3sfmW+139
dv4n/h79Dvy3+/374/s7/HL93/4AABwC3gTUB1oK4gr8Cq4Lag2ADxoRShLYEpMTahTCFLsU
1BSoFKcTrhLNEcMQ3w+VDtoMvAt+C4ULGQvOCa4I9AfEBiIF5AOAA+IDtQQCBYsEaQOHAgEC
gwEoAaUAYgA4AFT/Jv8qANH/1f7z/Sb9qP0+/2wAjwHsA5sFXQaHB5AIsQiOCAEJcgmsCVkK
TQuiC9oKMwlVBuEBWP5f/t4ACgNjBmsK3gsnDdIOahCEEmwUZBdDGhsbvxohGYkWZRPvD1wM
iAhtBSECYf75+eXzFO0p58HiZ95B2o3Wi9LUzenI/cO3vpO6z7eUtQm0DbTotK61kbaXtiS2
arZnt2a5prxDwJbDRscQy6/ODdMr13LaiN564onltem37gHz/vbg+gT+CgGZBLcIMw32EZ8V
oRfNGY4cvx8cI30lUCYXJnglfiWlJmopMy0ZMBwydzInMewvOy+cLsAtJi3cLFQs7CqEKGIl
bSE8HZ8aqhoZGxga6hdtFukV2hN4EVcPGQ5MDmAOTw7FDW4NYQ3WDRYOSw1rDIQKCgm0CZAK
2wieA1f9ofgn9k/1P/VI9Sn0f/EC7zruxe7e7+TwePJz9bj5Av5YAZkD6wKkABP/4P46/77+
r/7O/UT6fPXG8pjzh/dT/Kz9V/pT9RPybPKS9pz7sf/mAV8CDQJoAW0A+P2C+/f4PPUw8L/q
aOZ/4yvioeA+3pncMd1S4G7kHehG6i3rjOr26GPp0+tz70fytfQw91v3qPae9l/3uPj/+Uv7
IP1u/sP+k/3a+5r82P8kBf8Ktw4HENYQZRFjEvsTHxX4Fb4W+xdwGDEX3xSyEggRkxAVEQMR
7A+TDJkIVQYABgcG2QUSBskFzAVlBoMH8giJCi4MUgz3CvgIbAinCuUNlRBpEasPtwzECmYI
owQLARb9RvnG9l/0N/Fp7b/obOWX4z7iVOGV32fdDNvM13/UQNKxz6vMt8gAxKLAqL/ewYjF
S8ftxofGHMfKyQXOzdJm1zLbIt9l47TnYez38Fj0avaC9wb6s/4OBhQQ+BerHIwfRSDDH48g
CCNVJWknryhxKeAqVi2TMD4zzDRsNCszrzJMM5s0ODW0NFgyJzBXMDExpDAZLn0pgiNFHgIb
nhn2F5kTgA1ACH4FMAblCPQKYAoHBxMEfwPZBUoJOQsnCzoJ5weOCHMKIwvmCBMDXvr08/7y
Yffu/RIBqP2E9hTy1vKg98v8w/8/Aa0DrAdNC2sOABAHD7ILJQdFA4YBAwJlAoQCOgMNBLQE
9QRaBFgDoAFg/ez2KvBm7LXuyvPf9YT0ZvFo7r3tYO7+7m3vrO7861/mZuCN3QjebeDl4drh
ReCp3cbbbdvU3CLfgOAc4eHiv+fL7/L1TPbl8Wrtku3b8v342/oL+8T9MwL7BvEIewaeAVf9
G/sW+2n+TwSXCtEM+Qk5BYkAwfzq+bf4/Pp0AfkHRgryBz0EJwKWBAIKsgzICpoGjgO6AcgB
2gJvA2kCQAAF/pP7pfrh+jb7ZPn59Ffweu0G7D3rUexu7dbuLPJ19eL2s/V38ZHsNeyC8qv8
cwQOBDb6aO456fTohury7XLwJO+R6z/oDubl4zbix+BV3V3ZFdax1BbU5NLq0ZvSUNao1obS
Ic+MzhnSLdc63MbfyuL+5CPlfuXR5Y/oN+8l+uMEdArpC04M/g1cEDYVWxohHNsb5xphF/IT
yhcDIQEqBTCVLhYn2iBJIFQm3S7nNaw4FjnTOfg3sTR7M1Ez7zF2MOYvYC2zJvgc1xK0DfUN
DRAWE74T/RCNDGoHTgYoDgYW6w8+/qv6xgHv/QkFOxf1JUMquB2PEvoTOh8HKsAw6jG9LVst
MjS+Oig8pDsrO+4/2UqyVNNVpFHxSlxCSjw5Ouw8eT+rOxMzHyyTKF0oXCx5MpAzoC/3J8EY
2glcAjoChgZDCS4Fyvxv9VvxHe5a6qjsiO676xXnwdxq0X/N/c1nz3PTkdY912jTVtAR0WvR
6NRt2rreS+NT6yP0r/dx9Afyh/WJ+j39Y/5o/hX+SwK7CpgRrg+RB1X9tfTx9Kr+hgxuFS0W
mxIZFCYXTRK8DsgRahXHGogimCXoIpIdpRSPDRMRUxkUGg0VdhB9C84KQA3aDBoLLgfJAXH/
5/7s/AX7//rV+zj39e9g6MTiaOXi6JTpD+pL7N3vAPG/5sPMIrK3rgzGzeE/5mrQ5r2tu83H
qd+673Dxovr+BQIB//vi/FT6Cfa/8ZHi9cwBwnO+crqgsR+lBp04n2Gm+acjn72Z46KtsPG7
zL/7v6y+Bbx+u8W3P7hSxHzXI+o09F/29e695bznpe3u8zT6I/v/+qb5iPhlAIcOtxu7Jhsr
yiSIHo4iMi0jOB5BaEEaPB4+jEEIQI064DM5KnEfBh+vHksRLf8w74vkpOif8+35f/tk9sXr
JOHB3lPiOuiT8x38IfWX6tbsBPQZ+yL6pOd+0zbIBMfR1H3jGOhw6wzwwve3BM8OFRNqE2AY
qyesOq5Mq1bSWLxaYVLoQkJBlkcPTT5MR0VLQIs8Qz4aQRRAvUEcP+MwyR3pCqECdQSsBdIH
mAhZAaX4sfPu7eXtI/ea/qP7fu+F4CnVXs+c0N7UntyE5GzfyNKBwh61Z7VIvyvIb89x2Kjk
IvCj7q3nQOSR5zXwAfQa8uftD/Aw+k4JfBx7Jz0dfgWC+an9NAkuGpAnuC/+Ncs0Vy1VKWYm
nyQRL7k8QUn9UIJJQj0QOJI6Ejy1PLs8tjYBK8MlDCpALOYsUiirH1MZ4xeRF8EQnQvYEAgX
shdZExwJ/vvQ80vzLe+x8/sDwA3FDAT71N+dzc7MI9d+5RHxb+3x1znFj79pwmLOsdsw5Tzl
cuC52ffSP9SI25noyu0z55fhk9kH0GTIl8YT1ZrmeetR2fi6vLKut8G+ms4Q2jXerd991XjG
/sApxHzQDt9x7wj8wPsg933qnOHK6636NQUBClIFKPs88cruT/lPDeUgOCctHIgJZf48BNYU
byTULoMxfi9iKmUiHh3kHo4eTxgWF2ITJwG26EzY7M0zzULVH9cs0vTIVr+Es4StB7a3w9PR
rNhK0wXS2Nvi4BLkbuW114rGXcbk1y7oqud65JXoZ+5nAJAUgB6DGjUIBgXlGRE0OE9EYwVm
c2MXWW1PnlROYDRyxHasaR9j2GFdX9pfoWFhZzhnn1NVOVUigBjvHK4dABc3E88PgwUW+BDr
pOZf6onuaOzI4SbblNlI11zUutGk0GPSFNICzaPHer+GtT+xXLhSxWTRzNqI2x7RDMnmy9zU
r9625CHpSOkp527rjvktDK0UtQrS9tTpd+3o/coROiLsKQcrVil1KDkmCSYwLb01vEWDVkJe
UmC9XaVbcV0lY21lOWZMZ99oImsAaYNlt1q6TkJK5Ud6RI1A6zqvMnstDSz+KlcjWRnMEG0E
1PqP+lkBJA4uHLwdTA999Z/fktzc5vfyCfZG8Bzi1dLfy2vKqdPj40/t7+uP5FjdIdtJ3fLc
MtwR3djcdN2C23DU/8qPxi7PpN9C5rja48QstPqyhLnExojcJe328M/n99NtxE7FlNOF42fx
1/+xBl4CVfY/7WvvnPlvBMYJ2AbD/8D4q/VA/Q8LWxmMIXEfdxQkCz4N2xSHHIgiUSe1JdMd
0ROMCEgDv/94+Yry1OpY4J3RwcV7vCa32bl7vVi8C7Wdqy2jjp2gn5iobLRbvgzDWsOHxaTK
U8590jvR5Mkxx+DGrMbHwxS8Ab/zzfri+fX//fwC+ArgFq4hACt+NI4/Tk4qYI5tZG/ucOR4
wH7HeWxqulxnVSBK7z2+N7c5MjvxMfQhfBC/C+cSDRoLHaUbHxaeDZsBFfat9Rv+OwcrA331
DuxT6IrmH+RE4gng7N4m3OHXmNDVw3m46LdjwNHLrdo75gro5+Ie3kXgfeq580L39/VX87v0
aPqDBAkQdxaqEoEGmPhM8u/36wUhFbsg5CgzLS4u0SsjKgou6ziJRqRSrl4kZrxoXWc0Yd9a
qlfCWEVa+FejUblLDkZ7P3M5NDNlL6gr2iWIHKkRoQxhDnUUmxgrFhsOVQSO+sv0OPoOBqsQ
2BOWCi36bevE5eDqxvTs+tf4xfHx5o/bu9WK2APigemf6sHk+tvS1YHU+9Yt3Abk++qJ7djn
/ttY0UTRCN9y7Kft7+NE1VLGhLk7tm3BoNTN5onv4+oe4zri/eou+OD/1QLNBRoL2BA6Ej0O
7A6NF7MeKSTII4sbthE2CbUHqA1fFvIYExM9Csn+YPev+Pz+VgigEEERCAmN/Hbww+Y54eDd
1dcZzgzE1bkgsI6nQqALnhWfPp2WlTiMZ4MOgDSEQ45XnT+rp7YUun23wrbctLCxEa9Xrb+w
Jrf/uHa3UrVVuWzHC9p56QHvhezt6IDtbPiXBXcYJy0pPgRETj4NOng/l06GXfllq2tabY1s
/2qraeVq0m9PcnppfV6CVVVLnEfRRoJEeUf0SQhF1DqPLbIkniSFJ+wlhxxhEr8KDADp9rby
YPO/9gj0UOkR2pLKm70itzm7X8vc4cPwGeyL2m7NvsiKzDfXC+Mp6hvrM+j/55vxpwOcFWAa
CBMVCOb/2QOZERwj5jF2PJJEa0LtNUErJSrjMA1DmlaiYAFlFGIhXNNXIlV+UwxVY1vpYsJi
/12KWlpUlU/pS4JI90RZPq00lyoBJGkfRRs/HJ4foRtCEnEFRfb97R7zNwFBC0kFp/OE4LnR
GcvFyxrR8tJ+z8TG5LZ0p+KhtKguua/H+cfxv5K2G6+ZrDWsF68EuorG+MpGxvu5ia8Istm/
uMzUyRC8D7Iyq8SnWKpFtj7JCtlg39jcv9cP2GfhHu9vAIkSWiOOLjgx2S3SJ1wony06ND46
VTwVNwAt2yT5IOsmgDEgNQQx+iq9I6EcoBghGAIfqyrjMIQqcxzMDID84fBt6iPhi9UBz0LK
zsRDv3y5zLQSsGCqjKMnmqyNBIZyhl2LcJYRpdewNbnius25qL3WvMy3fLXUtxHCEMiqxC3D
X8fO1HHsFwCkBcEDIAMDCeYUpSCdLyhCtFM0XitboVWKV/xhjW5ddTl7/H9sfTB3d3HBbRpt
RWqzYvdUvEuSSyFGvj2xNO0r7Sa3IdYcthfwEZ0MBwi0A/7+mPpA9xL08fAX7iPr1uiy5ubk
uuL/34nbWtKtxyjFW9C63mbg19XKysPDksHLxXXLG9Cw1ejbGOFm5Ffs2vcK/+UAxf0q+aj5
OwJTDRsaxSkhNmE6ezbtLl4oiCrDN2ZJwVc9X0Zj2mT/Y8RjUWQNZcpmRWWLW1VKBDmrMio3
4jbuK7UhuiCnKxY5YjpINvY+ClN1YbRfdFC7P8sznyzSJvYdyxV+DkEDB/OJ3zvO08PPvWe3
GbA9qAadjY3JgbCCdpJepzSzobH7pcabSplym6ej3rTEykHX/dJ3w1W0dLLcv1TOYc9qyNTD
VcHewCPEZcxt25rtGvkL/hUDxQf1DGwShReVHpIpGjcnP4c8sjIHKrkpKC/OM1Q3zzfLMzot
1iYpI3kiJyVYKEYnyCAKGK4Q9QwlDoQUlBoxGXgOJfxk6Rjdvdfe0rnMSccVwly9I7h+sxmv
Q6rZox+byZFCiHKBDYEXhsOOXZrmpr6ue6/sr3awf6/Rsbe5K8eG0UrRMM6SzlHVruXh+B8G
WgxaD1IUfBylI0sqtzNUQClOyVY1WZFZL1u4YLxmimvIc8x8/H86fjd5RHE0ZzBbz0/rSRFL
gEvHQkw0DCq0JwMnNiHkFz8RIg0pCWoEvP5C+hH31fRR88bxy+/u7b3rgum353zlauIi3RjV
tc2pzzHb4+XT5a/b48+FxlLEWcmwz9bUCNs84rLmN+j26Bzqlu68983/fwPTBMQIThCtGB4j
0y87Oto9kDuyN4A5C0R4U2Fi/G0adiR7jXqNcsZmSV0/XeRk/Gs+bQRqHGVyXhVV5kiEPFoy
9CqVJB8eyxeSE3ISQxLsDrIHif8S9Kvm++Au5q7tbe8A6zrjPtyx12jT8c6UzYvOb81PyLi/
kLh1uEvB08xW0v/R68/ay1nEKrsBs8SxlLlKxFbK28cFwxPEu8kWyqvBibocv6vLtdGzzCvH
HM1m3ezs7vQf+Bv9GgTnCAAM6hD/GSgl+CwqL0UszCh8KG0qhy32L6Ix/jPaNPIwEyoXJZwj
OiQcJSck+B8CGyQXJhIUDR0KKwhhBIL5Eui52W7Se8wuxqrAnbpMteKwI6wNqOakvaHMnfKY
W5LfideCBICTgaCG4o4tmr+j9qfCpjOj1qHpoVmjQaiWrxW1srdrufK9tMgO1zjkquyN8dT3
tQCqCOQPvhjBJfw1eEKlSfNNZVJUV09beV+1ZvVvXHVPczxqeV8UVSRKwj4ZNj01qzjcNzMu
4iA8GHkT3Q6wCv0GjwNgAGH9nvod+CH2p/Rb81jy4fH28Jnwe/D170zvG+2F5wjfxdmr27Hi
selH67XnrOF22tjVEteu3f3kbuov8Mr2tP1LA54GlAqKEZ0ZNB8eID8fBiKVKeQzxj4wSPZN
k06wTCdMB0/cVURgvmy9d+t+WH8XeY5wkWvUbS104ni6eTR2u24KZilcH1MHS+ZB/TfQLV4l
EB58FyESUw8CDo0MMgkdAgr6OvMT7gLpCuWa5NPlBeSQ3TDWqNEE0vbVyNYV0e7JtMXVxoLL
FNBE1U/Z19n31mLS9s0ayx7MTs+m0tTV19ih25bcBtw+2HzSAtBN0qDXfdlI1YzS+dbe4Qfv
F/k9/4gEQQk/DEIPOBUhH1oqLDUMPeo+9zsHN9IzyDMYNzk8GkBkQTQ+FjfbL0ErMSzWMd81
NTUVMNQoaCIxHswcVhw3GYAR9gRZ9NDkJ9vp0pvJCMHPtr+oKZd1hwSAvIOVjSOU5JXtl6ue
46forUqwRbVbvljGxcWWu2qvOadhpMCj+qExn5SeAKAyozSqc7TSwKnM7dWd3gLpJ/WSAeUN
FBuWKDY2FEOuTfJW0F/jZ2dujnOFd215dXiddNZukWdvXCxPR0UyQbJCuUTwQhQ9sjaUMawr
uCX1HWsTiwn0AqT+G/oT9rvyie+07CbqROjW5p/lJeW45CPkwuMU48Dhst5T21TZVNgF11HT
Xs7ryhTLOM9I1szdkOPt6O7vAPaE+J34rPgK/M8AEwQIBbID3QKvBQcNkxfQI6ouZzYWOgc7
3jz1Qk5OSlwFa2p30n1cfRx6tnjgeZF8WX70fK93w3BsajhkLF01VJdJrT6YNCQs5CQ5HrAY
rBNtDl0IugCE+U70bvC17PPoI+Wm4eLeUdvv1c7PEcuvyO3GfsQ/wfu8C7puuka9u8DDxDPJ
0csUzLzJ+sVsw8jDuMcqzufUydoP4I/iJd+v1irP+svPywTNds3dy6nJTsuw0mrcMOW362Hw
XvVz+uH/aAZYDREU4Bh9G90brhvyHPMeDCDnIFUjCSYuJ0gmDCTMIdUgdCHrIt8jISP+HwAb
/hRUDpIHPAC19vzpL9771eTOvMgaw2a9Y7hJsz2uaKlNo8+aG5LMjG+J3YV0gl2AHYE7hYqM
U5XxndakoqgaqkGqtKkDq86u77N8ujvB2shO0oncg+Yh8Jz66gQRDrwWPB62JEks5TTtPWpI
6VJ1WoRe319LYKNgomDOYeVjQmarZoJiXFsoUkpIvj6ONkEy1DFEMpowSit1IqYZWRLFCzcF
sf2N90jziO+37DvqQ+h05vDkyOM34jTgMN1O2SfVF9Lxz8bO58560KvTidai1x7Wh9Jqz6rP
ktLC18LebeVV7ITyL/gm/kUETwolDxQUWRkcHy4lHysvMmA6UkPnSvlQ1VVsWaZc/l/uZf5t
UXa3fMd/qH/rfH55oHUYcbZsWWl4ZahfZFgiUdtJZEICO34yYSnsH90W0g7ZB1YCXP7o+ir3
M/M17l/oPeKT3IHXcdOj0FHPUM7pzJLMwswHzdTMGMxIy77K2MojzInPMdRG2NnaH9sZ2qDZ
Idrd2xHeSOJO6YfwkPXs9rf1nPOx8JnsHehq5knpzO0S8Rj0vvg8/00GIQxAECoTtxXXGGoc
FCEqJ74sfDCzMf4wMTDwL8Avqi/zL6gwbDH2MEkvoyyEKUkmlSNuIfYfnh78GtAVYBAFDBMI
QgJm+pbxIOgC3jrUc8tTxCS+Criysfqq4qPonOiWI5Esi86Fs4EWgN+Bt4aojsyYdaIAq5ix
gLSdtYS2obeguba9F8XpzWjX1uGV6/v0Wf8gCVQRsBcdHb0j+CvSNFw8NUQ3ThVYTV8CY5Fj
KWTRZuVngGfgZulkXmI9XLtRtEb9O+Ex+Se/HmcZGhjxFiQTiA0wCG0DQv2C9ZXuu+oP6QXn
FuQ04ZLfb98B3mPZz9NGzgfJe8TJwT7B58HLwx3Go8cWyYfLhcwdy4zJ98lmzefS9NiQ3wfn
re1D8vfzQvOM8pjyyPTL+lIE+A84G8EltzEAQMpN+Fi5YQ9qt3NDe8t9GX2kfGV+iH+9e4Z0
eGxMZahddlJXRmY8iDVYL40mfBsTETcJvwJP/KD1lu9E6/HoeehK6X3qzOqz6NLkpODA2wHX
WtOT0KnOGc2GzIzNUdCN05vUtNMp017VndoK4Y/nLO5q9TL9wQIBA5j+x/jy86zvKer4413g
u+Eo51jsMu3Y6pLoqecn587kSuFn33vgdeR26ZHuePUW/9MIVg+hEhUVQBnnHnQjZyQdI3Qj
lyR+JPMh0Rw+GB0WjxW4FCwTrRJdE7gUfBWdFOETpRQFFqUVVxNwEKcOrA7pDRkJvf9V9Brq
2eJc3erYTNXf0U/O/sopyJ/E479FuZCwZKfbn3qaP5f4lrKay6EsqtGyMbrrv7fDCcU8xi/I
HcpTzJnPjdVp3jzo9fA5+DoAhgqiFO8bSSDTI5spHDHTN5g8t0AKRpFMJlK8VI1VhlZEWN1Z
31noWJBWIlKgSkdAPjaOLSQmnB5SFqwNRQaeAEL7VfaD8QLtJeh+4mLcbtee1STW/tVK1PXR
Sc/szQXNA8ukxxTE5MHGweXDuMaPyD/J78i8yDTJ3sigyLfIkcnWy8HPXtUz2+Lhpuls8Yv4
Ev5IA5oJ9A+XFsoc2SL0KYYxEzlHP1BEAUkhTXpRW1bxWulf2mTUZwJoLmaUY2xh3V+LXbFZ
gFTYTh1JnENePvI4bjJ1KpgiVRuYE3QLPQM2+wz0Lu4e6a3jat7T2XnVytFNz+HOXNET1TPX
F9cE1pTWR9pP3/fiHuR+5GzmeunB7DPvlvDz8ebyu/Px80jyle+b7ebsFu3Q7iLxBfNW9EH0
VPN+8671ePf49vf0fvJo8d/yRfV898z58PzRAKcD3ATmBOMFrQmeDjISjRSQFvMYDBzAHpUg
OCE/Is0k2CdzKb4olia3IwgiIyHgH/gd5xq/FzQWABaxFNoRqQ3ICH0Ddv2I9vHtYeVP3jnZ
iNR6z+PKN8YKwuO9prnYtbWxdK3JqQ+nEaYgpx+rmLFstzG8bMDjw2fIJ81j0Y/Vedi425fg
4Obd7hf3OP3zAosJ2xFOHLQklCmULMkwFTegPsZF20rlTo9TT1kUXhZidmUwZ9BmJ2QlYENb
8VXcT81Ix0AEOasyOS3sKEkk6B2KFhoPMAnUBJUA/vuN9s3wYOyD6aHmyOJO3lDZvdSb0a3O
lso3xiLCzb8MwGfB6cMRx/TJJMyszYrPvtFH1dXaMuA65LvnqetA8LH1uPtlAYAGkQolDgES
vhV8GT8dLiF7JkEsOjEZNTc4UzywQcpGK0uuT+pTHldfWB1Y6lZHVZxUblOGTzdJVkJqPCE4
ezOiLeMmhh+YGHISEw2ABwsCCPxd9XDvvOqH5lTiwN022XfW99TW0wTTv9Iy00zUOdRb0iLQ
GM8R0e7TFNVe1WrWfti62+beU+A04S7iVuM95DDkzOOk45TkNeaU58bodekD6gPqT+gK5yno
e+v07sXvHe7J6zXqzetX8Av1ivjg+ZX6O/yo/2kE1AhQC58KkQjqBoEGRAeHCfYLhQ0zD+sQ
vhJ1FIEXhhzGIsgoHC1pLjwtlizJKz0q8yaoH9wWYA2eAYb2p+3j5ofhlNx02L7UKdFvzZrJ
BcXNvv+1OKylpYiiY6CAnh6dQ522n0ykE6tCsg65Ar9UxErK189U1MLXjNrV3vvlP++Y+HL/
jAMrB4oMVRVUIEsqhjITOM87HEAtRQpMDVOIVj5VUVCgSrpHxkcxSK1H7kT1QIQ80DgDNd4u
ySe8H90XzBBaCy0HdAGD+Y7xVevT5WThzd0A20rY3tW909nRYdBBzp/Lt8avv9+4LrQUsZmv
BrCksd+0E7kHvpXCoMa7yxvSethe3qrjPudo6s/t1PCm8zf2wPli/jkEBwtREDgTehTwFTMZ
AR9tJuAt0DMCNzk5BjzqPw9FtEmUTFdOZk9NUGtRtlJnU3VSX1C1S3BE4zweNZMtCydsIbQc
Rhl/FgoSngqHATH4Iu8y6JfjruCH3u/boNkg1+LUptMB1EvWk9nX3HDeld9y4LLgIuGc4enh
reBM3yTfWeDS4t7lMuna6xjuzu/l8D/xnvBn8Ofx1fWw+6wBTAVqBfQC8f6f+3D8LAGQBlEJ
PgdrAr/9lPq/+aH65Ptn/LP7NPpL+v/81wBKBVQImQlMC/YNgxJUGOseICVUKXArZCutKgsq
iykkKZ8pjyrAKjYrYywcLQQtJit3Jq8gNhqDE6kNdgjBAyL/2/pP9yP0XvDF6tzjttwO16/T
JdIL0tDQus2+yQnGZcT7xRDLZNFK14TcPuHS5efqPfCr87f1KPhb/FcDPAxyFa0crSAcI64l
tCmlMB049j1ZQvRFDEqoTtlTQVhbWsZZDFdCVF5T2lQ+VphValJzTH5FHD8jOpk2HjNCLqcn
2CCjG5IZNRn1FtwRWQqxAVD6pPVO8wfzgPNI8wbxj+tD5CPcDtXgz2rNvM1vzjLPbdB50TDR
2tAz0ZfTXNgD3RfgTuEY4snimuNw5YLo7+vY7vLwavMF+L3+bAYzDM0OqQ87EP8RORXxGAEd
YCHyJOomlycJKRss7S+3MzU16zQmNF4yBDB8LfgqxSgEJmIgvxlSFEQQuw08C4MIzwQtAEr6
ffLj6sjkfeCT3QPcMdsq2wDcN9x6273ZfNey1nzY09s/4FTkGebN5VPlUOVS5v3mxOUs5d/l
/+di6rHr4utw63zr8Ook6SPnmObZ57vpZOuL7Ovsnez26gLowuTB4rzjBufb6wXwtPHu8Tzx
cfB78HrxvfPa9Zj1+vNU8+z17/v1AjsIQgk+B0kFJwUjCEoNNBIJFnAXQRaZE5MRohLJFWkZ
7htpHIkbvRraGr0asBlQFyITYA5eCgYHMANC/qT4PfMA70TrnOeE49neK9pq1R7RCs5ey2zI
oMXLwi3AQb/0wJHDdsU0xt3Gfcm4zZLRTtWU2BXZ9Nih2s3eLuYL77v2dftd/Wz/GQTKCvUS
whpWIWInBSvgLBUu1i+6MuY0+TSRMhwxvTCKMZYyATDxKuwjuRyzFR8PEwvuBvIBmfwT+DL2
j/Vy9M/w7+nJ4YTaGdTk0CnSPtW81+bWONGkxze+fbeftVe4kLzUv6nAyMDhwqvHaMw5z7zR
ONaZ2wXgx+H34Q7lQOxa9MD4Ivnr92b4MfrH+9z9NQDWAmEE5ARgBG4E8QZlClcONRKjFZsY
KhznIKwmEy0NMqUzFzLGL/gtgi5HMCwx7zDYLnYrOyhSJ/4mmyUXI1YeqRg5FAcRww4iDrkN
NwwdCEQBOPrq9Pjwa+2G6yDqzOg76YXqWexO7+jxLPMn9En0zPO39Dr2Fvc0+K/5k/q1+m36
2/m5+Xz6z/oA+dr18fGO7intAOzm6rHpv+gE6VXphune6kbuu/PN+uIBggcQC3EMvwxMDXkO
oBCoE0YW7heoGdUa2RpZGjcZdRcWFlMVyRRUFSwXDBrqG10cHx3fHvAhOiU7J5onZyeMJ+8o
BixfLwYxuTBeLhMsVSujKcsloh9KGPsQQQtBCP4FTwNXAPb8wvgl9Kvvq+u46BTmB+Tf4rHh
seBa4CbgBeCW4O7hr+Tp6frvL/Ty9APz1PL69iD/cggbEGIVchjKG10hKCkVMVY4xj5kQ1dH
6EgpSJBHg0jYSxdPCVBiTSRKiEj/SN1JKkd8QYM57DGaKhkkiiCBHdMaBBdaEQwLhQS1/r/5
dvVz8Afq7+Jy3X7bD91U32Dfkt0N2sPWrNTU0/TT/NWB2sPfW+W66Jbqiesh6yHqp+iR5+Dm
Dudp6Kfr1e/m8hrzv/Ad7mHtiO959Hf6ZP69/zT/kP/IAW4FTglyCsUJ8giuCnQQORjWHzgk
/yTDI7IhBiAZH+EdixxrGykZ3ResF30XvReCFgASewqQAXr5FPSb8fzxm/Iz8n7wbewD53Xh
sN043bnfauFg4THg1t1G3Pnb9Nzs3RrebN233DPc2tzU30rjTOap53fnPeZ05drlF+e16e7s
qe/1733uEex26ZDo1+mT7Lfuf+5n61vn0uQI5grpweot6g3nkuQq46DiQ+LV4bHiFOUk6eLr
6+ty6i/qOe2k8Vj16PYP9iL1EfUH9lb4+vpm/l0CowYnCpAMWQ9eEhIUABSuE+USoBLdE2wU
xxNbE+sStxEZDxYKLQOs/Hf4svbZ9Vj0z/Ep7u3pm+WW4YHewdx42xjbRdwx3RXeIN/o39fg
E+Ji5Vvqj++v8+H0A/Ve9rv6bgEICeIPKBSbFvkYKh7SJKEr2zDWMbMwJDDwMTs19jd0Obs5
CTmiOBM4mDZtNIsxAzA8MAcwtyyuJ2QiQh5mHecd/h3eGrMUfQ2+B94EUwO9AZ7++PmM88Xs
Yud65AfkUeVe5gLl2eHl3IDY79aw1x3aod2L4dfl8enE7Nft/ezr60HqSemc6srsv/Cl9QD6
bfyd/B38f/vw/E8AxgIWBIoE2QU0CTENKBGKE40TqBH1D8oQ/xQvG7Uf2CDmHjUd7xydHVse
EBuMFOMOow1CEOYSUBS9Em4PLgtLBVr+7Pa98M/tle9i8kT0D/RZ8V7uu+vL6k3r+uso7Tvv
P++d7WbtPu7s70PxMPDd7Tzsteul7W7x7/Ra9pb1n/Rp9NL0lvVl9876lP4LASEBiv48+2D5
7fkE/nsCTAQxA5H+0fhx9ITzivZN+h77kvjB9u74ov0bASQApPu49hH0mfXM+HT62/lI+Sf8
HgHcBOkETwLNAJQARwLUBHMGxQmRDRUQ7hHGEjEUSRcdGgQbGBrJF40VFxYuGdobZhzEGUQU
ig2wB6cDJAEBAU8CSQOoAqP/YPvv9zH2n/Wi9ILyDvCx7G/psuaY42XhruGU5Mjn/um76nTq
0uuo79jzefY89xv3Bvku/qgE6gtIEt8WYBogHGccrhoeGNUX8hm9HMYeJR+uHQoalBc4F5YW
xxWSE/8PpQyGCskHMwfeCqgOxBBzD7ULUggeBmIFgwWOBYEFHgSnAJ36AvKJ6cfjwOEu4pfi
HOCn21fYr9ai1qzX6dfp1nDVjdS51TLZKd154BrjQeQ65Vznw+yi9VX9bQAw/wf9OP2G/x4B
w/9/+9D3UPjr/R0GOQubCewDGv61+1j+uQE3AwoC+v4r/Fr7Nv4BAtgDWgN8/1r6TfdV91b6
Uv0N/u37D/jx81DwXe4I7RPsfew87lzvwu908Dfwau8/7nLstOog6ZbotOld6y3tju6V71fw
TvGT8wz1hPX39Xf2rPeC+VP7CfyL/DD9A/79/osAYwMFBQ8E8f/b+uv3Vvht/DIAvwEMA4gF
5wkOD9kReBAIDYEK1QrVDJUOBA/eDToNkA0KDy0QQg7fCToF3wG8/5j+Y/6v/lj/KACa/2j+
Pf5D/68BJQS1BxIOLhVQGkccihyqHUMhHSbFKKIoPCi4KW8txDG8NIQ0/jErMGUvky46LCEo
pSLxHZ0boBl6FwAVNRLUD4IOQA1hCxEJ3QWwAQP9H/o5+iX9mwDvAd//JPzu+qv92QLyBqEH
+gUqBQcI5g5DFhMbux2sH2oh0SPFJgAoGifWJEojESQhJwMs9i/cMBUvGitjJ5QmIiczJuYj
rCDoHRod7xtLGQkVEBCICn8E+f8a/BL5ivf79gr3PvZ186fufOke5TrhEN4O3Ebcxt6o4SDk
5OWo5pzn1+lf7LXtCO6e7nHvx+/U77TwSPOt9zz8yf3f/LD7/fvU/2sFcgmsCcgFIQBB/QAA
QAW0CdEKowefAij/zf8MA1cHeQoqCuMHKwXiA4IEtgXUBocG4ATrA6MEUAW9BPQDlAOWAqUA
C/65+cz1n/O38QXxIfFK8F/u7evJ6WLoL+eU5abkcuUF51DoAOn56MPoYOmP6qrrGO087vTt
de1K7S7tOu6n8PnzSvdK+Tz5hPgt+R76fvtV/R399/vS+jX6xvri+/b8yf3B/2EB3gAO/sP5
o/ZP9hz34/aK9Xvys+497Lrs1O6n8Bbxh+476jHmK+Rp5D7mH+iJ6UTq4ek+6oPrf+1Y8CHz
PPWI94H65PyZ/iEAbgIXBgwKrAyoDKoL0wrxCVkKDQs5C9EL2AsgCqcHbQRCASX/Cf0J+674
ivWr8r3x6vIk9Z32rvXh8VbshedM5EvkvedW7P/vKvE58CnvEPAw8wL35PkS+gf4O/jz+/cB
MAmLDkYQsw9oD+MPIBFcEn4SwBEHEf8RaxRzGHsbMRq1FUQQKg0KDYENugy8Cm0IMAcYBpMD
AAEa//D8Tfkh9cbyNvP29SX5jfpA+TP1a+8V6a/js+Aw4fPiaOPR5PnnaOwJ8Uf03fXR9r73
Qfje9zn3m/ep+F/7Uv6qADgDMgTcAgwA4v3q/TsAywIGBMMDtAE3/zP+iv9FAhsEAgRCA8MC
rwOTBnEKZg4+D+0LQwbj/9372vt5/0IE7QYYB2EGbwWkBUsHVAikB2gE0f+S+zr56/nY+8/9
oP8mAKz+avv39gvzA/EW8N/uJO0t65HqMey47eLuYu/I7n7vPvGl8s/0nfeP+Xb6wfpt+yX9
lAAhBcUItwvUDQYP1g99EDoRDxEPEOcOSA6XDuwPcxG+ESYR1w+UDb8KIQhQBS0CKf9v+6X3
CPUW9OT0oPYl+NX4+/mX+zn8//ol+CD2LvY89z73VfZf9Wz1jvcO+hD8wP1z/6cAzgEtA8MD
EgSWBOQFTwcxCCMI8geoCMgJYAteDJUMxwzDDV4ORQ19CzAJ8gYqBSwExQMbA5oC0AIPBGUG
XwjHCE4HCgQtAD79d/ye/S0AUALJAab/LP4V/2ECJQaECLwIkgdxBg4HkArdDxwVThiSF+gU
EhR3FVoYjhrUGfEWVBOmEBAQCBFyEgYT5hFpD6gMegtLDMMNIA/+D4gP2g4sDnAMFwvHCS0I
EQYCBPwDnwRjBaoFPQT5Acv/1P2x+4T5avc09tf1z/Ui92r5ZPuV/ej/ngBLANv/Kv9p/gv/
mAAnArsE0QYnCH4IyQdGB4oHFQnHCtoLkQw9DBoLngvxDLMNxg1ODPAJdwdGBr0GfghzCpYK
3gjkBYEDkgIrAhUCYQLfAqwCawLjAUwBxgEEAtQAxP2M+UH2vvRP9LD0//QX9a709vLs8ADv
Ce5B7urtEe3a7Pzs5u2/7/DxS/QE9ur2oveA+Nf5hvtL/IH8qfzF/H79wP55AGECrAMBBPwD
sgOAA+UDNgTaA98CKwLLAXoBvQHKASIBQQBx/6X/TQFwA7IEDwSZAY3+v/vA+cz41/jW+Mf3
vvbV9if4efmo+Xb4UfZM9DzzfPNv9Gv1jfax9/X4gPqt+zL8efyz/ET9XP+OAnQFYAclCAsI
owfuB0MJ5wrMC5wL4QqkCokLGg0vDt0NbwxACsQHiwX1AygD4QLiAgoDWAMbA/IBPgCw/eH6
S/n3+Hj5zfoj/Hr8vfzj/YL/OAGMAvYCCgKbAML/YgBGAx4HWwoVDMILOwosCYYJogqAC+gL
oAtBCo4I6gdrCJUJRQo8CTUH1wQtA8UCHwMTBHAEswNMAo0ATf4O/Eb6rPiI9/D2Mfe59w/4
qvdx9kf15vNC8sLwDvAz8EzxXfIy8+T0D/dJ+dH6X/u9+sH5Ufkg+Qb5qPmi+w/+NABSASkB
SwCH/y//RP/0/6IAdwCN/xr/2f96AacC4QGx/5v9xPx0/bb+k//c/27/H/5V/L36+/lp+dX4
4fgY+cT51Prc+5L82/yN/GP7yfkj+Dv3Rvc8+HL54/op/Mv7MPoo+FX2HvU89ef1S/a49rr2
gvZU9oD2LvfX98H3KPeq9rn2UPdv+CX6dPsi/EP8tvsn+2P7b/xG/joAxgHzAr8DiwTgBOYE
JwVZBfkEugMBAkMAA/9m/yEByQJtBJkFgAU2BEoCaABn/43/rv+c//r+Bf1s+5L6O/rm+mf7
0PoD+eD2YfU+9VL2U/eB95n33/es90j3K/fA9zT5hvv5/RAAcwG8Ac0AE//T/d79pv8QAqoD
IAS6A2QDiQQxB1wJsgnwB3oE3ABE/6b/eQAQAfYA4wCyAAsAdP8H/vb7rPo/+ir6p/of++v6
pPoj+5H8of79AEsCnQIbAiABegH3AscEgwasB7gHdwfXB2kINAkrCioLyAvACysLlQl8B0IG
cgb5B9QJXgqnCSQIjAa+Ba0FoAWZBHICU/93/Lj6//li+mH7lfwh/Uv9tP0e/qH+zP6Z/kv+
rf2l/FD87fzH/f7+BgD6AFICmwPiAyAD6AGqANz/iP/K/zIApAAMAQkBDQE5AX0B+QFeAnQC
RQL2AaQBlgFFAiEDvQPiAzUDYQIDAm8CYQMeBCYEfAOQAqsBQQFKATwB9QBeAJv/T//g/8wA
RwFEAZYAY/+N/iX+EP5H/l/+kP4y/6P/W/+T/pb9q/wn/A/8QPyA/FD86PvA+/b7ovx8/SL+
N/6//VX9I/0f/YD9D/7F/pv/iQBdAQoCiAK2AgMDSwOkAxQESAQ4BPgD5QMoBNIEVgUxBWkE
WQN2AgcCVALMAhsDMAPPAigCfwEIAcMAggDw/3n/Uv8v/zf/M/8O/+H+t/53/hv+0f2v/a39
4v1P/p7+1v4E/w//0f6F/pf+E/8FABcBtwHeAbABUgFFAcMBkAJLA4QDPwPXApACmwL0Am8D
nwM1A4gC0gEJAV4A/v/G/4T/Zf+a/7z/lP9F/9r+k/6U/tH+Pf+O/5b/eP9z/8j/jQCJAXEC
+ALgAmcCEAIIAnACBQNQA04DNQMaAwEDBgMBA+sCvQJxAhcCqwFDAcgARgDn/8b/2f/K/27/
Hv/s/ur+OP+J/6//Zf/D/iH+zP3N/fv9Jv4v/ib+8v3r/Rn+VP58/lz+Ff7T/aj9pv32/Wv+
6v5S/3r/nP+5/9r/8v/r/9j/zP/Q/+D/7f/9/xUAMQBCACEAAQARADgAUQBHABkA9v8gAH8A
7QAnAfwAjQAUAOT/BABGAIEAdgAXAJn/Nf8a/z//Vf9T/zz/Ev8O/0P/kv/V/+7/0P+T/1r/
O/8u/yT/Lv9H/2r/gv95/03/Df/R/rf+uP7R/v7+IP88/0//WP9j/3f/k/+g/57/iv9y/23/
f/+k/8f/5P8AABkAHwAbACMAMgBIAGwAigCJAHcAZABeAHEAlQCvAKoAhgBbAEQARQBWAGsA
egCAAHsAbABKACgABwDp/97/5P/x//n/+//q/8//t/+t/7L/u/+9/7b/p/+Z/5//sP+//8D/
tf+s/6b/qv+0/8j/5f8CAA8ACwD+//P/7//1/wMAEAAcACYAKQAfABQAFQAeACoAMAAoABMA
/v/v/+r/8f/9/wcADgATABIADgAHAAUAEAAdACMAHwATAAgABQAOACIALgAzADEAKQAgAB8A
IQAhAB4AGgAXABgAHQAjACkALAAtAC4AKgAjAB4AGgAWABEACwAEAP//AAACAAIAAAD+////
AwAHAAUAAgD///3/+//6//n/+f/7//v/+v/3//b/9f/2//b/9f/0//T/9v/4//z//v//////
///+//7//v///////v/8//z//P/+/wAAAQABAAAAAQACAAIAAgACAAEAAQABAAIAAgACAAIA
AQAAAAAAAAAAAAAAAAAAAP////8AAAAAAAAAAAAAAAAAAAAAAAAAAA==</binary></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX125">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX126">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">11</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><binary>UklGRkonAABXQVZFZm10IBAAAAABAAEAESsAABErAAABAAgAZmFjdAQAAAAaJwAAZGF0YRon
AAB6h35whJF6boashmyVxWUwkaePuZA+X7XVSXHEhU32fjvE5ztu8Zdkt7pbdMnFaH6pUGiN
lX6Nl0xaaZcuOqGMWVNcXZ6pdDiTtXBRo59rLWFJg6E1n5IzV5x7Y39wYLC2YICqcU5nvqti
eIuOrl2ooorDmyuP3l8wonQ9IIqSSmOxjmeWbLuZWqe1THSbWC1hV1NPT6lcJrFxe651lLaC
u7ykvcGZx9+k0q61p52ZhYSKk3F0km1VlFxMjEVecHZOUIgyhGZrk0eEi2iVjLNLn65IqplA
mptGZZlXcpt3PZeVS3KbiJ2cbbB7gp1lo4yXRH+UNEKSO0yYHoBUpUuTar5smFOud26KeYlX
nkykV3hWyAy1Zpcqu2OLfJxftHqeiOSQpdqQsMWd2WvrScxOvmWnTdNWioNphIJvTr8+bJJt
a4xjr1d1ln9Xyi/DSq9obKpqYc91eqiCVrNpmFbBV5V5gYh/Xb44pI45sEl/Wakjl1OGL64s
rTJuomRrimKZc5ZTxyfjGtc2s2JthVqCZkGhOsIU2TzAUcNs6mfFg91p8VLua6CSeZJrnIha
oUuEZotPlFWOO6hGmVOoUZxipD25UZFtiHo9uC/BRbY7um22VL+Xh6Rj0kqvenPAS6lhm1WN
R5hWUZszhkR+S1+kI8Qpxj65Uq9HxkuGgnZQwyrILtMfyTKfdF2vK8JMh5c32mmH2Ev2XftX
+mPPuW3CioeSiphSvE+VaYlUrkSNemp/emqWZ5diqlywVKhfmnGAhXp0kmZ9oYeEoqJ2s46j
gp+wc5a9ScBJwDiPmEt0f2B0Z1t1T3ZVY39NeHV0Zpxhhodtgm2GaYxekGiCW5hYbJM5mTOW
QYlRoFHCaIvAcMF0xblr1W7TW7Z4pHKFo1efbXmAcWiOX4dqdXJ1cnlufH50fnB2kFaMa3dy
ZoZ3bXKfYaBwlYubk5x2vXeUsF3SSttVj7JBl2ttojFhgDmAUlyUandug5FPr1x/k31eho9L
g2qEVZBkfZ1UpVyIbnShPp1kvC/bNPkV/UzsU/yQifB5rcuxb8qXb6BQsUqFUaMokXM3n1GA
Zo9xjIaIeaiCa3yrPZgvuTtbgnGOWpOchphs507TcstBvowx0y3CGoptlhXDNGCpFtUAyi2V
XYK1Rphomlxsh6BJXYpVc2tenlJudJRDrGDTJZmbcFSrUNtHfpSqequGwrtp5Y97917AcMCi
ZW3TIJWOYUlroEtau3dj0Et7wFxpwGtXnmZqg3V6dotnjnSQs62CsrWJjsNf3lJnjYEymi2k
ZlBtapMcz1FncJp5OKhwMtFBnEykjyzVDLtBslNxp2twQ8c4ZHh8OXhPZk1/h1+bf8Nn9arl
lu64hsGGg4OuP2S2GGxgvw+Be60g5iLlbIVnip1MmijNNY1oN8VVeGemgJ98oJKMbbJYujbL
Tcsc7J05mNZtjFXvRY6id2B1myprdBayDDqebDuqhatK0odo51l0mkPCPp9eY3J1Mr0zemF6
WWqkc855vWTAjq6O1nq4XNZGmai2ZIeNvVa0woedhqloZos+oCdeVYQvmmBss0u8e4V1tHdi
pHI8nWRoem14iHiTi6CXnqOkp416l498N6dSS4sqZXqHMmeTbk+aWbVQdaxToXFhk3c5iFqN
J5FrpzSLc5ozgZtXgTSfc1xtV8JHuLl6lqKWw7Gu6ryPuKWIl52BkGpmaGOBYKZwb5Zwk5ab
maqlimO2bkqjQmxjKV1WmkPBaIaocd5/xJe1foKEiYhljoqIQHeQd4qRaG/HKFypUEhdRpMq
Mop9mq43wI6JvFyooa9QfFOfNSyMcismUU6dD39xfnNtvZ6EzG6z0GeOzpOfkIWdnK6Au8Np
nIt3gmaUV4JbVzWSZWd9oYRhvpRjx6dg1Flkpjt5gU6KKGmiKqWXpdNlvqjuZqSBtXIxp2hX
R3hYPYt0W3WaeGWGcYN9fXqEY2ODrDePnzKKm3dTjKlTlJJUm4V3VoAtemhTSIqMSOCQibry
i53p0IyvpY1wj5F9jbqAZ6d/PquTgGRYmDBloDiUroFnculrldx6XMl0P2+IflJhWpFJcXfN
pISY45pzscaCZoBvUWUgZJIKdFFpXFiWdnaef1KrdWecdVegfD6HbZJfTqVYP4OFSJChK2Of
HHhzenlkZIGqfY7Lt5vnpZy+m6HTuHLap0KgnVpsc294S2RelVZ7oV2eha2gpdRsjpp0Q5dE
dW09XH+OSNRio816m8O0iKqLnnRbfqZtQJt2RmOHU4aJUohTbFNsh15ciYJkXY6KaJiLgYV4
c46BbXOGW11WVXRKR2eASolqcZ6IktrMkvHPdL+9YMioP5mRS3+feqKUUsB4bb+CfK9UeXdz
U2SWQGFoVIRljHqJoGqQmJyWdISuSnKlUHmyYW6+fm3cf4/Ki3iCmYJcbZxhNmWIXTBtjV5X
pFOAv3WNrnibjEuRc0NZd0VrhGd7eFeFhUt2bFVnck12f26mlInKxLTL7LvG2Jior4SCknNw
eHN0enN/e3iOgnubjXuJhIZzbIZpV4ZsWoaDcn+OmYZ2r4d5mn6KjYB8nH5/lZFtinh3iX1h
f3Z2eF1fdFc6cWhXWolhS5hXZaFoZ5J7Y4h5mmZqinVHgIBnb4NZXIdNXJhzT6Roh5KYqp25
vKHMvpi/opeSp3xosWtqiKZEeZeAXp6MWKN4gYWnVqeJjGGlZn6cZ397eXFmh4aFeqR+noF+
soKDrIx7dIuDZm11iXFPlUt/h3NHs0pakX1PqHagdIKjVZZ6f4NVgmJ0dHZMoFhpc4wvl16A
N6RVfGeafKx8q6+qqLi9mK+hoo5+p4Ruiph7Yoh3eXOATottYlOWeGSWk2uVgXx9iIFYkXFJ
iXeAVaB4fnGlcapvtYurYKqLoV6Xg5ZZd3iSUXleb2RUZ2lihFSOgnqOhJOMh3uMil99gXNl
eHNneYFdeotTf4NUjGaQWItpjoiHuJPUltCoqb+om6+WkYKgbYV/eoFjeoJQlF+bT5Vxbn14
boaXY4B2jn1nj4x3b5thl3eLfpaNbKN8j6Fls3afcp6Oe3uPklyHcodjcYlFfXVFbl9qT39P
kU2Qfn6Saopqg4NZo0yQYXpZbmlnYWCJMZRAhXp0Wbcx0jrTaLCqnKTYf9uUsLWDuVe+VqVj
jFyxQoaQTKw5qGN0llyNk2eyVLRkrGuvWKGIknl7tnOVqHOclo2fhalU4j3CapVZvFCDrkGa
gVGvEcowaYAhmgmyHqoqwCm5botxuVm8PbKASp1/QZlZZ2eOHrA3ljuAcGGDnULhVcCMuZ+t
vJjCqq6Fp7FinI5+c6ZRcaBkXIKIQnx7hz2qdVCWdYxzabIlsliFRK6ILs9ccY6bbHnBTaO4
O8CaVtRIp3+Lao54ZaQukoo9fDiuMUerNkmrNptseIerU7eAjX2bj3OjZJx3dHaTSYZmc4NC
sRGokiiWp3OUeth5u67IqsWV06KCz0bHmS60lDGCmFU8q15DwExMtW88xkWCvyPLR4W8PHe2
kCazqE1i2VJv1GGds0/fuSzbnGSBobg2vaIqzV8svTJYg1oYdZIAtE1sXm+lWZCugFeyjkm0
UXmPRXR1X2J4Q2iZO1KzBbdPfU2RrEGou0uj6F7YtcFz25epipvPbIWkcXfFJnvGMFuteDx+
zguht1GfpkWoqXBWlbpSPrqJHNRYYbV/dL+Rj5ezzjbZcHnAYHR6oWFlYI9uVoAyj5AAvUkz
oH4okb4i0THHWOAfspGZKoukNnNVmlJxU3iQGKFVeJJNqlm7dd4729SkYOnIXrLCjYmRp1+Q
eX+pOXmDojRrfo4ejYxma2O3X1mWeKlAqJVWhZBKw3iTX7l1jVvKW7afWNpnn3ympUrTZXWK
ZoiQO4iuCIOHM0h9LsYPm21Hx1ekRrekSrJHtXherj2jf5kdmn07sTiGqU1fpZQ+sGLDqH2+
qr6YtcaPzal7nJmVblybkkiNilusWmyVSpUcppMzn8cP1p8qvZgdroVRUbZqUqmYMOJGpqI/
47Yl84JX5HpQ50tqqEdKn05knKUF1mMGcaMAwHIPrVtrgJlHsoFrgGu5F8gip31LeLAxb36K
M5Vfb1xPp4saqckg4NZ8i/W8Z/p/g+Z3lMWwMuJhWK07sSrsDbJlRLc3sDHeR51sumpZvzq3
cl7CG9FHYnnJHddstqefqbyrxUvdelCTemhmokaCiZVFX6NqL4R3ezCtRFKKdpsYpMogxTex
uRaYuh6Ufl9joz13imVGtUhVwhp3bpRcg17Hl4qutJvSj56/p4x94yXZgFGWh31pmkeoeE6q
VIKiTKSjZXWXi0+MjjuEnT9onHVLwEGSj6NPvKJf5Ua7vlOzlHyQoXx8fbAompceo0JgexOk
DnJ9Q2hvjoRdoZBmuXpfhHyHTF2Iii6iSJlejGWQSpGKLLZLtULEm36Q7FvJ4mDPn7WUoZTP
VbeOfYaxQq2OSKCKWXqGdG1eq11RqoRIs2BtrSfUKptdtEOFsmWSiKmKddc8rqo7wpg5nppS
fLsohrUPqGldh2GAQ7cKl5sUpnhHc7I8Zc9AZNkjh7I9e61AiIV/V3CiIJtwNac4bIBkqItX
x5ClcPpuurOuddt9h8CUWKG4MaqIc3GWUXGLgDK8QG10nWBtpaM0nMIkuXKIg2a4bYiZrVSa
4RbewjC+wDzLX5ijWrJyT9ArhIh3coVFn2YonGlCfnR6S8IunppvoH1Xsm5UoV9dpSacd013
b6JLTZxjRqlWX5tgiadchMOZeulfz9Ztp9lao8qGa75tcqZalH5sfnxUcqIxeZpFpyyWnTKS
oVJ/bZGQSrE02h6NjpBnb8lqfZSNqmyNvmhozSmilFSicoZ3ZpsXxEtQmn85qFKMP7N8SKCF
S79eZpSIhXVd1i2Iq16BhIJQvTiFf3pRpnuFg599mZ6WmZPVTs62XKCRlXKUcKxccKBnZ6M4
mFucNJWaP6mAoIBxp6NUpoakXKFwmmqWj0W/nEalql2YactEtWSTnlqdhUbBNHqVXT2TgD1a
mjVZfUyXQmaZUYCVWl6vdFiZnUinU4ObZ1qnlS2qd1eVZmWBh0W6b2bNkHq8s4jEk4zGf5aK
kXWgYGKfaWt3eF+iVoxmrnVhtI1wj55jsFGndoWDV5qLVJyIWLCIYobAXMZYq7hHxn2DibMz
qFGlX153tR7NNI1xfF54piaTkGaDjnh8hJ5QvE6iUouOMqdsV4dyaoFjZYlDimt4fUaOimtl
oX94h66bjNqBnqW3e4/NWJ6QfXLCTHOfVpVNd4pygF6Fi3qEllvOO8xtadggsYt6jUzBbWuT
i0CseVujYn1zpXBor1iHinKWZHiSkjuvaz2TgiaOiTSBjmJnkV/CUYWfhIBon1eikje5hz+p
b26bWoSDdlZ3n2dToIdovFXCnXbGp4W6poKyhZmdqWiYl5ZjgImBdl+IjDa+SGe2THSyQpST
bYSPnj6rtSSfn1uEpi2mozC3pDq1n2qPqodb1UiPvDqflFqWbnJspkmNJK1RVF56V39OlmGJ
iESJoTGEcWdXlUR6foJMeXCKXlx6hn1Evj+nqWDYc6XSasqzd9J7nb9yl4ipRc4uvW5Ti5Mx
vldvpWhzsynKcGmPioB8b6pamnKYZZGZg2OsZJOCp5Rlqp98d7JWo394Za5aWKdwap52YbQ2
oHNvlD6ikEKJlEmsenSGj1yTWYlrimOUVXtiYJtMbIiQUJZwd3dxkKJFz3SunYWgunPHl3HC
lXp2oGJqqEpynTR8fGZfcVWAcZJte5WbbK1evmOLqU+FgW6WUIN0q12fXaZmonxpi3+3cn2Y
fIt1l51PszSpeTF6glSRN7hLdpBMj4xPuI5nnWSOg4uKemWoWlteqzhrlz2AnRqNj0xrn0eP
hZJ/oZLed6+cwIWlt1fdimS4h59pjpeaaJGXfmerknd/nIKFepiPd5CNimFvmpFNeZ9ufkqe
dky9RoGfTKFTlGiMmj6Zcq42fqBKqGNfqF6hPKSVOYmVJ56DTXWSSKtNep9Ok5E+uUKBX4F6
U2WINa5RZY+DSatxbZeAcbFpyl+zsoh9xo6HfrNcjJRxbJ55U6OVPaF9flelkmCrhIimkZZ+
zHmIn3upf2+3SpWNdmeVeox2wTyslnllpXtviYpFql1+mkmLiGaEa2l2iEJ+cYBmd3ltlmCM
d4VvjoVmpkeYglN9llSBkVVxhJ1OlaY/snuUb5+if8tlx619l8NeoomxPaCOameAdGV2nTWk
W2mPVXSbO4qUWWSdf2KFkINmi5N0cKVrlmOZjH2ZqGGbknJ2n2OZjmmIhX6EYHeUbWaaem+H
hlGEi39Nq4NPp4k7qEm7Wn18fo9tVaBpfT6daWWZTpdhi4lth5hhsGy+ZZChuGirjstVuoGe
lF+chYhni3GEgHV6p0qWbpCRb3CzaKppmoWcjYp2la5Dl5FhgZNhhXiJYpVlh3KrZY54o4Z3
a4efSH+QbViBe4pPgn2GS5xDb5GONIl5b5hMm31tk2utSK9ngWegP4JzpCqHmEGHfkiheXNl
jqVSjbGFdKOnrnqXs7pdnJ2Hf5WOZ4yNaXmCf3CTXY9sjYlnlaJ8d6N4k3aJjINWqmWBjl56
jVivSZ6IYJmkRaeKdIGTbZCbUq2CZ5KNfXGMkn9zmX2BpkyqYqBgl1eIkVptnVR5W5FeamSF
aU53iUalLY1/elx8bq9DgLFse6e3WsOtb7uGpo+LsmyFm4Bvf5d+bnekXHJ6i091iXtfkHCA
jXGWYqWBZ4eOZI9jo06XgYWAi5p5kJBtl5FRn4Rkh4h7coWTXaxShIpzcmmDb2OSQ5GJZnGG
dIJhnH9rrj6bfGpdinlrfZNgiY5KmJpSipGYYISjcLNnt5mjj6Skc8aJf62Je5KOcHeJdX9X
n4BffZV2ZpZtl3WAbIyTZHiTgohxj4aXWZiRZn5+hZpgiJWKg4eGmYlwjpxOiIZwb3eNbGWV
bGeYVH9rbmCLSpVhcm6mVXWUkEqEk2Bkl25kd4GEbm+Ng0uMg31Ul4BpfIqGfJiCjqV1q6KH
iIycg5OLaJ2cV4ugZGqLbWOSWHCCWIxognmOd4Kfho+GmYGfj3KZmoxsrJpvj3qzbIikgn+U
enyaZHuPgGGLen13bnSKdGJ9fW9sfG54kFKRhV6Fl0yRgnFlmGd+emqIhHxWqH9deqRsfI2B
cKt0da1hool9pYx/pYyRfaOHeXqlcmyOiFmbdFGZf2Rxi3CDapZrcaxbf4d4mH9xi5RwjXp9
hntgk4pamo5jmnKebXaibnh3bY14bG6MfW5xgXKAZIhceX5pcINmkmyPco2dVpR4nl6HhJ5V
h5t5bY2EnVt4kIdQh2SeYIWXdIaZlni6fZ2ih6plqaF5fpeac4qCoU2igGxzg3R6bn96coyO
WJ6RboR+lIV5iZ5pkXaOjnGOm2+ScY6Vb3KmYIGHZJBpfW55eoxZg5hUh4V4bGyLeGOEh16q
WHWKYYOGfmyJa4t7aHNzjGRrhG9+Y3OFc2CbeF6Tf4l7gI+kiYKTlZiCfo6XeXqRhG2Lg3x1
hHSRX359jWGHjHKPhYKNmWiemYp7hJSXXZeJfXV+jopgkYBwkYh8f4ZzlG+RV5l9fXaPeX+C
hot5f4RykWxtkHmBdo6AhJJ/boWJh2SHbX6DemJ+iW1neJFXeYZbi4lrdomLfnube3mmh4iP
qYCTlYWraJt/i5Fze46IW4iYVId7gWWDgG1ujHN/dIBvmGhwiYGFc3aTd2ubYYaJb5RthI54
eIyBi4FklYtcgoV0kWGBinBzfX2DaXiTaXGDj25ufZJ1co+BeodxjoF2gHiQfGOJk1t9hoxi
doSRYYKNfIaJnoCFkpqWlH+Slptlm4GOfXaWeX2Ignx4g4x+dIaRhXGIjpR1kIONj2yYgYGH
en+BcH17g3ufcoSPgKFfkZJlkm94dXl5iVKPflqFcHZ/YoF7bHd7fH1gmYNmiHx9kFqNe2p9
gWRpf35fc3CEbGxwhXlZk3CBkHCGg5uDlY+biKx9lJyMf5uDi4h5j3OBg3N7gIFveI1+b4d+
i49ijpF3epCEiIGCg5ZsiJFdk398jnSGk4V+lZF4jnybgWV6lmuMcoZ9em+He297dHp1jVqJ
eX1/fHqFlGiOk22DhX2PYoZ/eGx3kGh/bo52aXZ4h1l/kYBti5qCgad5npZyqX94lIx4nm58
mW53j3pmknlljH9xeol7fYl3hXaInGSAioRvim93hXVzgXh7bIWHbYWCg391kHGCf35+eId/
eX6Ib36JcXiEh2pzi4Njhn94i4B8eoh8dIR/d32Gd2mbcWeJj219jnN1i4duj4uCeJmMiYSg
moKuhYqalniVl4CAjo91eoWEb3eAe1+IeWx8g4VygYSSiHSNkYaEjn6GiXqHfoV5gIN3fIx+
b4iRb32EkXZuj3p9gGuAgXxyfoljgXeBYYeFYY1kh4tdgIeFYoGAgHJ1fXxvenJ5fWx5eYZq
c4hqc3qDcXqAfYCIgpKNgoSUlHKNjo14iI15iYaCfIh8j3WHgX6EfneReYOFjop4h5OJcZ2T
apJ/lnKJfZFwhYCNeXyMhYGLiW+OfXuIdol8g3WJe3uEfH19dYFqh39pkHpzi3t6fXeBf3WA
e3F9fX5tdIhzaopog3p8bIWLeHWOl2eUlpR9kKOMhZKof4SVj4Z5h4OAgHWFfZJhe4eBWJp2
YIGKbmmFhnhxgX2BdoRxcX6VV4x+fXeTZXyPgneBgomJdZBrjYJ9gW2If3J2e3x0hGSDfXZv
foNvfIN7f4CFepB1hYeKaIOIdnx7eYGCa4GKdHKCgIJ5h4GIdJCUiX6RmYWNk4aRkYaIn4h1
ho2Ffm+Oj2KTj21+g450jYVqj4ttfI2Ka4mVcn12kINhjI11coKLcoKLdoGWeoOBiHyAj3eB
d4KAb3t9fGyBe311dH98bHeEgmiHfIV7hIRqjIR3dH18dXt7dHB8iHNnhYlfeoF1e3iIc4WM
fYGDjIx8kpuCfJmPcZODgHyFinV8hHh+e396gHCGfnB8hIRyioKIgHyPhHmQfYWHe4OKhnmE
foyCe4KQiXiOiIB/i4V2hYd+g36BeIWBfYFyjX1vfoB8foF5gIODen6LhXKAiIFtg4x1enSD
g3BweoB+cHWDf3txfoiDdYOOiH+OkX+QjICTjYGDj4p9eY99hHyCf39/c3p/foByenyHaX98
gW13gHd9g319hoCJeI19foF2jHd+eZRkiXx+fIduf4Z3b41thICBcXOHiWGCfoR4goN4kWmG
hXdzlGZ5iXlpfot2c4h/fnZ8h3l5gneGjnOJgouUiH+amIaEmZR+kIuCmn6Ah458gIKJhniN
eoSDhneJhnyAgYt7iXKShnKLf4xpjoVvhX6UaYeLh3CMhJB8eIiMd3eFf3WGc3d7gmp6enJ+
a4FydXJxg3CCcIJ9e3WAfXqGcHl+dnN6dnF3f21zgXttj217f4V9f4CDepCGgYiNj4OJkY6E
jHqSg4CAjnp5jnx6e4V+doGEe3SJiXWAiYeBd4KKgHSQeXuHiX18iId5iYqEg32NiniJh3aM
gH2EgIWAfn5/f4FzgIZ4dHV+fnt3iXqBi4B6h4R7hnyJeoeEeHyDh3iChoZzgYSAcoB/fXyF
e4CHiYl/kJKGj4SFiYdweod4bn98f3CBgn1xgHqDeIB3eYF6dHyBfnyEdIx/eISJdXmEgnp+
doWAinCCg4d2g4Z1g4Z0fnqIbHx7iXpwioN2fHGEeHt4dol7cH6DfnyFeYp2i3aBdY56cYeL
gHWFiIdzhoKKf316j399fIiTeYeLkoyEln+Njop8i4SDhoZ+foSJgnqJfYJ0k3d+goOCgYKE
fYGLfYKGhHx/jHZ6g4uBb4uRboOTd3yMiHKIi3KEdol4dniAdnOIb3d6coNqeIFqeXl+c32E
d399eX5xgHx9cnh0fIBuf351gHx0g4F1e4R9enyFiH+CjYOHi4uPg4aCiIaAgYCEh3aBhXp5
goF2e4CCfHuEgXR+hX+BgISBhIGLfH2EiXx+hop/gYyKgIKLhoKSiXeMiICEe4KBenmIenKD
g3WBeX2DcH2Cf3KHfHuDhX6DhHqKgYGFgICFhIZ8hnuJeHiHfm9/gnl+eoCEe4WIiYCHioaM
f4WChIN9e4R+fHp8fXt2fnt8f3iDe32AgYF6gYN5fnd9fIB8dH+DcneJf3GGhn95g4N5goB9
e3uDgHiCf4CAeX+AgnR+h3d0hnxsgH13eId7fICDg4V2gYV6eX+BgnmFhIZ6f4p+d4WCfIWB
fIaBhIiAhI6GioyJjoSKioaAgoiIfoSAiYJ7goKEfIGDg3qEgYCEfoCGhXeCgYaFen6ChXx5
inl+ioN4hYd9h4p/hoSAhn1+g4B8f3t+fXx1dnd/cG97eWx5eXN8gW99h3d0hHh/eXh5fnR8
dn54eoN7d4p8d4OEfn56goSAe4eEiH+MjIGOg4WKgoGEgoR9hYFyhYFth3l8eH10hXt2hoF7
gX+Dh3uBgoGGf4V+hIKDjX6BjYZ9j4CEjo59jIeFjIKAiHeDhIF4hHeAhXJ4gYFvgHd+hXmC
hnh9hoZ4f4CBgIF6g3d+eoJ9f3x9hYF2gIh7fHyBh397i4p9hZGHg4iFhouGg4GEfXuAgHZ9
enmCeXmAeH16fIF5eH17fnl9gX58gHx/fniAfnp/gn57goZ5gIaBfoOAf3+Eg3uCe31+dnZ6
eXt9enh4gIF1fXyEeYCAgH6BfoCCgnh8f4V7e32Cgn9/f4F+gIJ+eX6DgHp/g4R/hYSKiIeH
jo+Ih4mMjIODhYaFhYKDhIKBgYF9gYGCgIOFhoaFhYaFg4OFg4CCf4GCgXp/gIODfYCChISD
goKCgX13eX58dnZ4e3l2c3h2dXh4dXd8e3h5f39+fH1+goB9fX6AgHx5fYB/fXZ0foF8e3uA
fnx6f396e3+DfoSFhoeGh4mIgoWFhIGDgoCAgnx5f3t6end7foJ3e31+fHqCgnt9gYJ+gYWJ
gYKGh4WAhoSGiYiEjYmHioWJhIyFfYWEhH59g318gHp/enyAfHh7fXt+d35+f3+BfoB9gnh+
fH5+enyAfYB+fYF8g4CCgnyEhHyHjIGJjIaJhYqRj4GIjZF6gIyEdIF/e3x6eH56dnV9enp2
fX1xgoFyfYJ5fHl9f3tzgHR8fnN7gnSGdn+Bh3+Cf4WAfoB7g3+Be3mCf3R+g3l1gYJ9dIKF
eHmGgnaBg4R4hH+Den5+e3+Adnt+hnt5gYeDeYKEgHqHhoB5i41/f4yShYaNiouNioKIiIiB
hIaFe4SEg4F7gYSGfYF+goKFg4KAgY2CeoCEiHh9g32FgnuBgoCBhXx/g4KCgYKBg4WDgX6B
f3p+d3V6f3hye3l7dHN7eHV8d3t9fn2BgXp/f398fHl8e3t5fHx9f3mAfHl9f3p/gYGBgIKG
iYCEhoOBhYKCg4CBfn5+foF+enl9fX19fXt/gH1+gX9+g4J/e4CAf4N9gH+Dg4KAgoSEhICE
h4iJhYeIiomHhoSGhYKBgYB/gYJ8fH1/fXuAe31+goB8gIKCfH6Agn+Afn99f4CCgX9+f4KC
fn2Ag359gISCf4CAgH6DhISFh4aHiIaDhYeAfn6Afnp8fX5+enl/hHt3fICAd3t+f3t7fX18
fnt6enx+enx+fX2Bfnx/gIOBfH6Bg4B5fYSBeHp7f396eHl9fHV3eX98dXd7fn18fn2AhIB/
g4N/goOBgH+BgHyBhIGBhIOAhYWGg4SHgoKJhoeFh4iHiIeGhoWEhoGIhYSCh4KBh4F8f4KB
fHuBhH99gX+Dhn1/gIOFfX6Dhn98gICAg4J9goSGfoCFhoCCh4B8gIV6e31/fHl8e3l5fHd3
eXh6eXl8gHx7gX9+gHx7fX57e3p6enp9gnd5f4B5eoB7en2Aen9/gn+CgYKAgoWBhIWCg4OB
goV/f4GBfYCAfH19foF8fH1/fX2CgHuAgX1+f4J+e4KCgX2DhYKFhYaIhIaGh4OFh4KCg4V/
f4GBgYCAf39/gYF9gIB+gH1/gXyDhHt/g4WAf4GCg4GAgYCAgYSAfoGCgn1/gX9+goR/gIGD
gYKGhoaEhYeFgoaGfn+BgH19fXp7e315d3p8fXZ6fHx5e3x7en19e3t+fXx/fX5+gH5+f39+
f4KCf4CBgoKAf3+BgIB8fX1/fnp8fn17fXp+fnp4e398fH+AgIJ/gIGBfXt+fHx7e318fXx/
fH6CfoGDgoKFhIKEh4WEg4WJh4SHiIiDiISDhYeGgoKDhYSCg4KCg4N+f4KGgX6DhYOBg4SI
goCCg4KDgX6Cg4J/f4KEgIN/gIKCgX9+gIJ+e39+fXx9fXp8fnl4e3x5d3h8enV7e3t9fnx9
fn5/en2Af3p6fX99fX1+fXx9fn5+fn1+goF+gIOEgoGDhISCgYGBgoJ9fX19fnx8fH17fX57
e3p+f3t9f35+f39/gIB+fn+BgYB+foCCg4CChYiEgoaGh4aFhISEgoKEgoGFgn+AgIGCgH9/
gIGAfX2BgoB/fn+Bg4R9gIGDhHt/g4R+foKBgYKAgoJ/goKCgYKDhISBgoSFhIWEhIWDgoSB
gYKDfXx/gnx7fX1+fHh6fHt7fX16e3t8fXx9gX18fn59fn57e3t7fH18e31/f4B/f4OCgH6B
goJ7fn5+f3t7fHx8enp5eXt6eHl7fX57e35+fX6AgX5+f398foCAf32AgYCAf4GDg4WEgoSG
h4WEh4eJh4WGh4eGhYWFhIWFg4ODg4OBg4SDgYGBgoODgIGBgoKAgYGAgX+BgH+AgYGAgIGB
goCBg4OBgYOEgoKDgoGBgoKAf4B/f399fX18e3x7eXl6ent7eXh7fHx6e35/e3t8fn9+fH1/
fXx9f317fHt7fH1/fHt/f35+gYKAgYCDhYR+gIGAgH+Afn5/gH5+gH9+fn5/f358fn9/f35/
gH58foB+fn5+f319gIKDgoOFhIeIh4aHh4WFh4aBgYWGgH2AgoB+fn+AgHx9f4CAfYCBgH6C
hYB/g4WEf4GDhIF/goKBfYCBgX+AgIKCgX+CgYGBgIKEhYGDhoWFh4WChIWEgoGBgYGCgHx+
f316enp7fHh3ent7eXp8fH16e318e31/fnp9fX1+fn5/gX9/goF/gIOBf3+AfX1/fnt6fH54
eXx8e3t5en17enp8foF+fICAfoCBgH59f4B9fX9/fn2AgH19gIF+f4OFgoKHh4WHiomHh4mJ
iIWHiYGBgYGBgYGBgYGBgYGBgYGBgYGCgoKCgoKCgoKCgoGBgYGBgYGBgYGBgICAgICAgICA
gH9/fn5+fn59fXx8fHx8fHx8fICAgA==</binary></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX127">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">3</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><binary>SUQzAwAAAAAAFlREQVQAAAAMwAAAMTk5Ni0wNS0yNwD/+5DEAAAVvZkIGcoAAxcnqWczkAD/
v1Tc7BM0hj/i8jM+Ew6O8/+UcNNlUxGAc0WBoiwGqmc3N0AOwmA/90DclfZBbhb2BtmAG4hA
bwl9NTNA2KEAo2KXA1SgDYOP/wNcIAKFiUxS4GYMAZgd//hcgAIwK1EAwAAAbQIJ//7NhZQI
mGCwCgAjkLKwMsIC+guD///wBhYAoEBgGGWA+QXABiwYN3icxyBBT////8dgssrxzBmCoXC4
aG+aIf///+6CG5NFFFFFFFFFDABgBJyAoYTQZQTIxanTPlDhO6/79uw0+ne5lmUgbrBjLpe/
kQDh0eg4SrBBdKiUHbewBhwhIGHGyeW6IQAQEKPSlicXjF4UXIjxpsREmyuZYZhaHcIAUAj6
vDEYsOW5ZEO/Uja0hm0yIJdxB1Gmszl/KlJqxYdtWxTSMqVvNegeQvFTsmmozbr9p6fPn/MY
SeLx6clMPyiYq37s7NxW/Y7z/1+tf/xCc7T3rtnV7edTcvk1Pb39u83/cr0CAPIAAAF9SIaS
Q8zulVq8zN0Z7EfbexFdM0n/+5LEDAOWGWtUfPwAAoMuqoz8G0huvlMY0tWrcrV43OSy/jXk
kZrRBeCW6lzrS4LhUuYoY0CwlUX1yVaudcTdkwkaZp5bbOpyG015O4juUsQnnQZY1x/KLeU1
Zytyqf3Wn5Zet2KSW4W97+9evf//V5YvVst/3HDlJ3eNmxrOtyz9vv4dzx1zDVvvLtqt3tu7
vLX/lnjh/5fve+/9vCpdxuWv3XJqNgGokgOjEbADOewsaXOku7pneQnNvjsDBSr/byAwUVje
x4UqgZVGo39Y7cnDnLeS9r0YSyTzaGj0gfQvBVlsG0UwgqDWBWOma1JvlqKwtq+jC1DYCfdY
VBlkJWNTpvoecCebx36eAwiAvmi4QIZ7dzaZGX1iMMVVZmMyL1+1FL7P48R9v+ir3Mp2MTRG
GnFLQNpKoRzZ8zv84lVIfFIjP3p1BNKkGPLh6gAAAp4INJdGwp07NDVNsTwZlc5PmKE+maFK
vxGdQ7OUyVMoUWsK1pEXLwwGOc4D0KQX8uYVhKA6ByKMnZDI7ESsu5gwl2eRscmyGo4hIcRc
j+RR//uSxCmDlGWfWGe8ccqsr+rNhhuJISAm2Qw+jWSisUR1vB7MLHOzpy8saPrWoub3yNwZ
Gx4clJCLhYgDM89jB2i6ysplCikwVAaC7iERhFtXIvocyNjMTeoM5FmuZ5f/l5QvDwqAX2Y1
YZZ/DkDUuM/qVWd2tU1fGfkFDbrYxezQSR03if92K0UdZorLlqoS34L5MolZtEQHWczuvDkP
NZUCL8Pg1luKtbE0c1g4g6KVcBRhI14iINZeTLQNhcoZHFYBQZEc2OmLI1JzRjWVt6y20GBC
w5BziKxEl1FT95kwKXB7+rej5fkQP7Ue4a+jOZpRp8alzGz533K7+oMNRTMc5LpmPUE6WZta
TkM8ohUqAAABWSI1XIfDErGNljK5/iNGZNuEmOrVPAeuTptUbUypdLbYkzBHkG+NkvI5QToy
XztDqhRF32VKpamgtVOpd6RLhpGRl/S7hd56E9F8MkC6WcRlNldDpMOU4aky9gC6Wru7SxmH
4ZnKN2pVZltJE7NLR2qfGQUviYGOmINgepm5urMOoYZQFGlQi503ZBo6w//7ksRIg5UFa1Zn
4HjCkCWqiPwbUzZi4zmaec72jC4DKmkBh1DlopZnAOkDgOkhJTDPtfi0c3sVmh0wyW8WJudI
qW8BKMikOpaomqqUyIalWCdJowEYnTWLYYx2oWZ5lKNPjmBtpVjzkJIoLJ7twcJ1mTCoBJTP
i8LWWRLuUddUCET7aHE0vl1MyZ8xd+3vYvP0Nm1CX5tZVJdub6rEzMNJuPKnaIRDpcknRXVv
35WltEt6bH35CRjae7mrkXTB2/pKiSiVcY38jwNpJDW1JwRVAAABmlREdezeLJn84lXmYxXn
YtJqDOY+VRnB/BZU61ItWIajWZqZH6XY08Kg5m9TBxpw/U46N0/yLXi9BzK8nSPHEJeGAwiN
p4goVMUchKkASwSU6xrFCfwHY1lABeeF/P03WB6rT/g3XlLtOv4k13J/MkFXFUhHqk0HzKak
V++okCp7E3sW0fnfy2G5dWXSH1FBL/SdJRj5vrK03kYxxQKJ20N9UFdIuNQgGAKdvAUj/NI+
luI8ixL5ktNeuYzVaekZPQI2zmcGVfOtBE9fqhP/+5LEaIGVTWNUbDzRyoSt6uj0j8EFsJYb
11OdTmqG49k5IZjALaTe5KWZXivoeVQdaHoe5C9LqTAUJeU4VYDCZrih5A3xuKtoIhUAZENh
UDnFYo4SRuaVjbpYNSJ2MWZ5j6ikASGiOKGdWBoScOI8BAIGq9yFBUaujMfnwyIYPkJcNPCm
pBFAaY2kuSTn8bUAAAGZIifJRTiOJ9XP3zEpXJraocD4pejxggwVtWGmuITkRhGJ44VWPRhN
Kc1kIOp2ToOU9Q/STluVQ7TQH+KcgAuGAg5jN2R+JozwzEibJzp0vp6AuWQaSdLwdyDG4qBS
I0rm7Q5XMBwLh29hxHFuclaa8v913Lun8a9+HftjfmGY93pdunHrHmyLiA1yXFN7lqzfnztD
S9NTfX+P/4f+a1vd0mKIfOWEALzagDgHsoHsSJ2RmiTTxoq8+ev464WnGG3MSHmSUpdR/IU0
J1lKInYtJJlkt5bjUepIRkmdwGgqWMlaOZXctAZbD2jswTFclAguRrSMyWCVo0KbZAsKqg8C
8Xj7PwJbgh0IFvROM4z0//uSxIkBlQmPVGe80cqILOqc/A9RBSpz5FavS/W8NiArPg+49Ksm
SW8VWsu6EmxwgsTtugceYpGdiW+76Ts0O76Dlr84xrp+IwWkh46VAgAAAAAK84DwSQfE9AFa
tmE+5tQdmkCRirGFyKx6VxkBxkhoSQSEYHycXFyOB4T4P0NE7T3L8WEgC5CglKqUQrT4SCiA
pOKKHy+P4khclCbyuHaT0cBsnQdZYS+i1QThu1q9JIw4YyPl2zMsKTcaBkhz0XP/99KYXh3l
+0HyeSrH3q+puSfK2njS1gpmF0aYii71HutKfvvwuRJmopdB5SjyQz0kIA1LENHgGc9Bb0ki
kJYo8V9AhxYT2VukiwoUrBGWEZMXSE30OqIb5oDBIg63hCTXOQd4CgGmqYgsiGgFaTPsXdqZ
lWwpgrjucT/UJ4qEzD2MEV0yjCOgnicLzGW0PLAT0+xvEAbZHh0U8NmbYXFJBrYsSOUqPhfy
7uexhOcuosJTrEz33po4RCL4/inoJWY+FeHHZ4R+Mooieu5pYEPYzddnBnsTGQnwS6oAAAJ6
MP/7ksSqAZVNZ1lGPNcKjzPrDPSPyXMqyRpxXSd2zVh37HGlw1qzKqVLE9UzKXdPLJ0spbjq
C5Tw90ilyGkyKEGWAKCSFzT4dQEgdQkwKcpTWJ4d6nU61GZoWZXBMEhUqcTaKQhJkqTiNIal
lKLIcxSHKa2SkY0uXCIc6eTG7TMD4OKgiqsvhiMywMro5E0VhkgcYIjhXJCzncsKMIQPmCZT
b/z85hqLyMdPs8tSCrNCwky23HhyQAAeYWImihnVOpHkCA8YYE9nsNvcoSsollapnh8qlJnK
O4/SVkIFIEVE+DyHOXoBaDbCgFhLVVGUIA5HiaI1lMNx/EWT7h4dTqyOo8HM2C4sRRF+TQ/1
Q/UKdViqLIfj8el1YVA/B24gj+TXXHVpReTvMzNLUirlNm3fPIkrEZ1OaaHjEV+MX0GaBBxt
ZdSLJ//CBp0+wfP6lyFh33EPAY0ptq4AAAB09gTKVOMnatUe1S8lUShVMJwXbtXvo1VGdTkh
jkYIjF1s+w6UNOJOkbEaACpiaWzOxYg6AHGAzWQvIkiquxIvIyZQCJT/+5LEyQGUtYtYZ7xx
ypCyKyj2D8mKKuG5C12fsuZI4bfTkGtwZQ/z/L8h2WoG1mlJRwQ5EYZ3aWAguQMTSTHiMIgR
wGzP4199n+oyeDgnwg+nMSlylSfs1p/XCVnZfMfW2DWXOfXeaLONjpYtFuajLWs/tt9NbKEn
X22v3/PEr29sKr3EJHjrQNbgDFUAjnWEhMofbpGo9vYo6hVzpUphRv0uQF23ujnHvQu4n+iW
qqgMqoVsiVQSHKrhQqL6Cg4MiWBsrXBzRs6Za/FUmoPQuOLgk6w67ziIFZYEy2PJUB7hEiIN
MbGFFLcIqoLP2pkmaNCauuRP1mtO2dgsONDR9kiRzkyZ4X+5BEidezQRLCUzdBXqRStfubw5
GI9vtefnsBRECBjGRhmMKI2azEf82Qe1oUnAEXoOh3e+VacOz+Ojz6Dzjs77D/3NV83zLuaZ
RqQqAAAANghHJSghEpU/lFDb/v/GYYsT89Wl0igl6pdZcB45VUeadibPFNYHcJY4cmaBzxw5
Zh1VbjGUcCbMkWAa8dMKIH+AM6tSzguRQBEJ//uSxOqDl7WTVGfhdwsisqpI/Bp6TcmMgjbC
pohiHyTUcxFxcq8ktmbsBLxKDAwqyVWJzP/C3qa/E0oeqLuylQGDd+tJtTLLM6aKXTjFaM8g
wJ7Ux4j5phvtSvTMK08w5DDjnMwprgsq56SRa7uSi++2Wzz3zcRfv26BjhJtz7gu5+MzO+s3
z1nLjlMAAEeMgn6vUiAUB2G+/VbZCjKVVGqXWfKubGRXI8zTuMeVbCBJfoONZQ+b8hGpsjIe
CpYOgSTCNgUghQmSGyAt3pEZDjOGUuAOkE0EtBYj8kAl+lsyQylKaZcMIg4SFyijOXaxZ/GC
oJJBlbwsoWi/ENtFtUbxOy685LJiRwLHoTDcacFUyXbiWNoWkeNJKtEgyM1zSAswqowyRM7U
kvcpwVaqCyT6UnVz1e7/nD+WfPnqzqyk1oMzH7ZSRyIM1m63d4AAAAAGLkWSHEHBITZPBjII
FfiQO++MngSINZj8VZfQX4lCJWxFe0GqRR+bU0mLwtgVsT0UdOEgshEtOA1ELgCzj/xPQRnA
rC6LIggydwJKPsR1YP/7ksTtgZidlVJsPN5LCCvqXPwmqSQlHSu6tUOOyMUOFAAmqRQUOoII
yvoiA3Rg6dtQ0AnkuE+i/yf6hH4JRtQ0+zuRyGnhY1lehkcv5pnkYXl8UZwckTqrkSh5yjL4
O1klGT7ZVRRuSzRaBNsZXDYahhlL3BFUfa+wuMJ2rnqGtXoSESmfz9JdIz9uy7MAx3AcpzLE
ZglxSMdGn+hyjV8x/o8mae75xlhIUzKqQcZYpEdWzxBBMoG6rQEZ3FSCVjLdJ/BiCAJbRsOA
MAzkkh1pGQgaSysaRgowk4WAC7qKBaoWUIpQQMnEl0HLqGLySB686b2omqkzxTuHoeUKc5ks
XoWCRpg8Dtip6WpQP7e7QPhB16iRKFmvu4o8mNB5Ngl0hcU5ApdxM/nIIYVItie2ha03ibXs
+8q8bIzczFEJR1bjxoEVYb+53VOKAAAAMbiXSYyvkMElTL075E/664k0x21RRJuVM98aeCFx
F9pbSr5ae/TSnlhl/VB3/ZCOgJOtcR0AA4tEuRbQ66FQxTgFLmUAOKkSZpEhUVFI48zfNFX/
+5LE8IGZpVtQ7D0+CvUr6kj8mqujBNRVU0IUDMGOFUCpiogXRNY0OGMkBg6nS1y+BEK6bD4S
u4eFb+JE+JGkSXuKiRKuSSrVigY9RWCOcrYrmdqtEvCgrp8yqeFFYaqiC4nkET+FslZhMRC8
ejtp6hZRg10ROOzO+JwR18b69t64UVcmYOCevgiZrdwYhm/wAKw6g6oIWrfR3Yri1WHXVlM6
2OVcpsYw8kkg2LNKmX2dVyVH0KEOLRyIBBgWPfUFCGkQj8hGiuWjG2UmC5Ak+UsH/KAYUsFX
jBQVLFuwxBC83QRptDZU4gGTOLXoSw4NK9mwTQ4QuBsAjQRl4nyZkHOFbFraDRUkc5EhVHtC
hVKdgpyOzwXp5BQx7owygtKy1GSTOJln7pOid02k3irjItNJpPkpEWXaf3WmtUrW2PX8d/MW
5xSCDNu70PrDujujzl1qAAABfMIQwKsDqQc+ZW5C2CI4qI9ELJdOXVJuCCLa8jBHXi1xP1/V
ll72ttNTFCg7QLiWxkgh5ZmiCiIaScwaVwMmAsoXJHmVVDLMETKx//uSxPGDmjljUGy83ksL
LOoNl5uJSwSiIRDFky7Y6EDSU5ErkPE6GJsvTOBw7Uky2DUDK3SaKkzWhlp8Zdovhm4kKyYl
CWtEpXh2Si5Sipur1Y75XK+e9Rc7RI1C+tedfs3N6mdPcM444bsPW+Zxc31DJhuphVHVM4/D
+2mOY5fgaXXQHkl3FXN92e51efv7EP7lHcW8SQAdogiBWJF2+YdAUaf2pHHahDkSKX08xTzb
icwd2VK5vJCiwDD0JIhBJAzEAS5gVVYEDKchVSAVKTJQLXAZ8saAAASVMoQKHjQ4CjKIAaOm
+g+Vxs5SKQzC4JdxUSijKWOINwhGRx4CcdiK/JiCMHscOw4pYKrFwuIEJ5CJBQc30agJ5Etr
kBdpS2tXigmhlaNEmUsgZNYdZttB5bP//t8yfZ5e7tJ7DJOV2vWnfXE4TI1EvswgelOeLJ/7
VMl2uQAAADllV2TJWpfRCESDFucDyCMt0fpskNYV5le2n7eGlY+2NLpZjlv0sZKUHDOOVQ2s
F1AoYl+ASC3JkWBzhlKIaF/mag44emdsBP/7ksTtg5oRk1Zn5ZGK/a5qyZSbywmWU0cGFoKi
JQRjDRal5egv2WzfBTFCaw0aRXXK+1UaEEqEuNOouVgEmZwVVyCWg9LDpTUYkPbp4EidW68k
YenWdYtsuflvZXdHeGCNxQ7Nsc57561mv6Yc2vwykezd9l6WcOgmuT8quLXKPDa+ZWugyzYA
NfMe2gYcQZUyWHWXp+twblaYkkwuVgsJbi7cBMzfxg7ySugdhmBcBPdl7XCoMQAjTwWLFJ0N
jBFCghWeeqR5ZpHmxQMQOoKLKOEgYIAWgZVIqkYAgI6GkgdcZBKUwkEWpfsYCBpCCBJEjQGw
HiH2uQHgnQZ4+lUeAKYm5+G+acQkaGvWJck6bWeJGet0/NIgOgdCQ4InkVoTsSMMMDhCBijS
BYOyBpQnejjhWZ+I95iS5qPXPVequWWG5mIK9BqGQNadyhqvOJUaoP8kZioAAAA1hqoVKo4Q
hrsVxPMDdZ2JJIYlMQdUfh9G6uk4zi3GVpUxNDcQAigzQmXiiIsIBRhGERYGsOCQSypyxHQQ
cj5LgXQMi4RuGij/+5LE7AOXvXNWbLB+izou6k2Xo4mBAwUmQok0xqABVQCpmOEXxDgTKUSt
UzfMEEGYSDhURU5AXROySgViXh1mlMAhDlHKXMUtgT5SoYsujrdMTUwqG7QiW6AwhbwAnJxV
hnctGrQcm/rw6LMScggq9o9EnSDlbcVXZ3hyb6zb65T02f9+RLhH79xcYJHJc+X3L7HKNAB9
KQalWsNAwJMy1+2zxl9YrDcrm3beWH5JXnoJeRxl0uqxIv6mBI3hUwYEKAj0YUDWcHQAksFY
Cgppzn+2fuYSKDlDVFZoVDDSiEhwYeFBTDFT+SSBoKXgXKCLoq7ycraxtbKT5cyB55TaH1xu
fAj9tac9b8CwsfwvPQXsLDdEZL4KZCsgbHmwQPWUsoVEAhIUlms/G2JRWClh2cgyIi2Liliz
BIssDooLWVA/G0anEWqadlCFNJqITHU1HzfbPIzqvp6OieYk6gAAADR0IiLUDElxYB4ZmVv6
7k5Akswa3XfOBYcjzuRuCdvozVdTTkxk31hUylSsnWGLeqlEY5jkCwKXQinLsizICUNl//uS
xOwDmV1rUmy83EsitGqNliPAk35BMwy1iuQ0iQjoiQGWnxEC4NFRtBxYIDLlFl0PgUGno+5c
Jeyqi6V/tZfNZFI28ZbeFOO04NidAIA8JU0DaYkHql1fbWpkn0VLXlji16r7jdG6QvSi0s+P
gHTD/N7GZtZMJZ0I22yT5Ira9/fbbXbs6RdKLwPSDgl43v3I/OdsAKsCDm4GEArlv5GoLbnA
VBFOz1tX7OI5bhtdjcWtpxQTVYe27pqDFQgveluaATBYGHWi6ZsumqGAkwCYacB3Ci0wXSMN
wBTIHGKQwYAEA0VUiDAyCVUmhMDgBEVzVBEf0J4GDZ0qFOxdkGShLFwoTg/72TcorDuIwFRA
AMSmoC4Ysp0ba5HH7iNYsYzWqwlZnej/194iWacShuUTgV2JbqJJ5nvRC/2A8TVG6mxXaNud
y/vRrY7FtZbrZMflfTHqdZE1AAAAVelB4LipvIA3li+UUkUddyGWZN2p6OAFb6aD32aQ5t1S
x0ZOkEnIieXXGkEFVPAUQSuEFIiPfhXRAuZaIpaZhAGVDgACMP/7ksTog5iZZ1ZssN5LCq1q
jZYbySHGll0xZcwGi/5fR10+RgJLIMVX+6iOYNIa8HEl7UtG5LFX27Tc0wxYN8oebEBAo4zE
VLIR8dCpUmHVwRDxRGbVR2V+tvZxrdRK1Tnsv9sOThgYahUXBAu0JIaOLIUEDi6ysT5FkCsl
Ty7mOQ6BIhUhFNTvw+X1fd9YANd0BGiMJFcRDv3BENsjtPnFoKl+Enm3Wp2nWbMeawqEuMqg
KGJeiAQW/QXLdoDTCVDEQu6MgM3HRzYOMpg0SjFRNWcxlTxSZMX+BTRbow1wsGYcAymiuRBo
VgogOUSLHgBJwHC0JcccAja5ASE2BfKXUssq4h17ouyquCIREYkTGwsE2BKPKkKNXEyZR5BF
ajEYMtOPOhO0Vyuh1QlMGISVWoqkwIHWga5Gojjgy4Sc/8/DHdT0Hk5JrLdHmjmOnfoAAABV
WQwSkmEXC0S46CaeSCG5QI6NWRWXpdpjjQIwt9+WXKdsfUPaMYIAICheBTlDsu0hEAFqOCyR
qDjIGfF4joLAoABJsLhha8KzwMaBJDD/+5LE6wOYVWNWbKR+Swmtao2Uj8kYRAAbMwcdDMcU
yljNDbIHHg0AyA2TKypUgAEmMZa4kAoJmXNIY/FELy/i6X7h6rLGsQJdppiV3IcdWB41hMRX
Kli9AALPkGLFQ55TlFxEmNrEyd68BZve5qs+PTd/pAo8+CB6UeOTNPZkM/3vvZLfRuTD5Mlx
5fa+9OcsAdJwlFC561MGBN8wOUZR2eeJw1V478+y2hkVI3aB1lKDweoGWAGIoUuUFiqYuMyA
s0HdNsONFQ041itpCo5SyUUGUnCA1RAgCmDiISsUTQQlrkPHkR9GjQd6hbFgMOgqikkWI6TE
NIRUgitCHg0wYKpTpuqNjEyQ2jWStPvWt5Lp63M08BWcyDMRSHEXfSykI6ByE9bUrblWLpdd
A9k3wy8UtjTojDp6ohtTqp9QU2/1sxzMjYdVXe2/3fkZHyWh911YAAAAfbkNTA8ZuzH3J447
o0FI6j4NhXW0KA2tNchlTpjTjMBibcETUloeLkDxC4BkZraLoUViBcZHhW0yQTMFXsFWwHwZ
4o9JDQ+QX6Gg//uSxO8DmaGFVG1k2MMLtCrJl5uKFmKQLABMQIgEEKXhbFTAKCg6FeS3hKsu
4jyFqDUG8M4fC7P834iBS5hPUQrzfJO5x0Wu3NrnisrIsR1dJD7NJI7ieHrGV3G8X3hxaMLQ
NmsmjGLnm/Yl3dvxeCJwz0VJ5hU6yrXWydLctSMSAQS7o4taSvKLlyg+w/h4ZjmdQAFWN1hg
puKe6v0vG6p8PE/0NMMWAnXngnCG1rPW46OD0uyytRUQDEwjWEzwhRYcEhggdJRFUCJvABmj
HDABZmnmLSYj8OkiYqYY9QMxSDBzKPAFFMNOC4dYIWBBgIAFLDAkOOpbEwkFPEn0yCLredNT
VUtp5IZiTG3wMCmmGDJBKhVPi/U2UnjClxMpDQVcnLIFECK4fLN1kcXLFUk6oyS612mX0306
z4pZeaop+7vPxm+V4zfT8xfIMVDoG/Lq8TemapoAAAGfpyYNLeCac6AmSNOisPvA+zwKbOpA
8RlT+Q01CMsmeEuoSBTVTFHUQKYWBQIWE/IosOgf2g1wd8Jej8AFFuGLDURg6NJclv/7ksTt
g5mVmVZsvNyLD6zqzZYbwWcGmYixZcIAhxFpIWs5LnNaBoxkqlCDKDy5E1IGS2c55kLgoB9W
fcd1Pt3uB4JIqP26k+FVddB5s9F8rSnFH8t/Ewz89lK2hiRNBEOgaYlzm983eZ4jdoxaZIrD
EMlt1FT4kW82U7+SAWuIMY1C8u22jS97ql2bW3G5rQIA6wAwBEjL8J7ODEVCmhP/FbbvLlcy
1GYBbm7TI2ys/bmuplitylrzGDDAoSW/VwSBhQcSDjBlTPDYCMAcNEAOIWHVrvBABL4bsPea
8ITisgIErApbuqfxjJJqbX4SgLIt0ZOBXoHJQPDDrnp35RhgzgMlW1FnRgyhguhv2YBnZRdm
K8zlKL1DWcILFhABmDUSSh1QICCuxAYGGQMkdKqE5W5GU9vol1pnR4SwsyyXywtB8I9QPNx5
K+mf3ZW14uoAAAB4sDIAUng4xuLVoy0tTKPQRDihbKIaiMzSOuwWUu/G0lVFVzJyqifguCCR
Y+FjgcQGbHWWBQgF6lGYoxCUQBiqifZihJkAAtggOwLgkUT/+5LE64OYxZtYbDDeQvyuqsms
DxtCoHoJkruQkwIqdDRyQ4s2gAIgxSH7zXUc2iQ6xacnoOgl60zED3BeDIwJhGSqBDFm5U9V
rlzydW9T0tHHHji6VQAlLSyBt4BEEbIJzvzSDba4vfH0u+qAOiDSmkjpbriJPwqvelyo8oI1
DOT1z8Zs/TdiHeMDeuWACrIgm4WDFRC6MWZETCz1HRaaQnbGWaQuHkxS+F9lalzXjHFImV5J
0KPFjoxSS9pyopnArMVOPpQixRyIIxWYLJD3oIOCFAa0ISWSnlSHPD0J2Ippp6hUJaCOxjnL
rS+EBoNEMAga3jcOCCEQUUguHLYO8JacpABEVyj4RpEwOZ4xvXe5m86oycVL/CqaWRxlD3j7
0S1CVGSq67EcKUxA5eSc9RNbC3/5Xns9lKSsqUhUtZVzMqVK1FV2V4+csZxl6gVIFSDxLbSC
7v1VAAACvbqhqSAXO9UWghvWAWJNhG7DtYw9FnScOH2SYM3XKthLFpEJflH4UkDSIJ27Kahc
phGvJti0IAcnuXJX+OUM6QMFsbqF//uSxO8DmSmDVmyw3gsvrSqNl6eJu0+yLQkBDdDMek3C
A1DlcskRygycQ4JOg0Ct0asqLuvKofht03aYrdpMB8MtEhVsDFKsJnO+EFFTOvsmaezF5UM/
dhboO5SrTu9L7Z0ZnT/qgY8CHE3DacUf2zEqpteS7eUH0gca2GyVBWtpYuUwBtkB+X2AZnYB
xhQIWkS0kbMKNhrz4P/LFA3YeWAsuNcUdgh7mwM1W8l0W/KxwcmAgTRPM9lCBPAQFoDxscIe
ASRC6FYlNzDDFi0yi6QS4euchAaIpUyUD1orIAzCMv+GEQtYEOHSgDLMUb5+09m5K5X+2ZZT
NF3O6t1srvvw2CUPE5UKfivAbE3Ip78VlMzRZVBhSWE48kdS3GRlDUdgckvTaUqKNYxsmMQ1
MteYmsQkgePmEysWknqVpELyKissjaKfvCo+ZWa7Xmb/89Kb56KFAAAAVIAF3Tu0Smu+h9kS
hT7St0nIdV2H+lq6XZgwuoppMt4lMxdx1yBdq1Q4A2VF0/hAAQD0A9MoCLpABY8CDnWCLQHQ
ki0swHWBff/7ksTqg5eFeVxsJN4LMbJrDZwbGZpoOtDEk706VWizwoKMpgwFB+TIXBh6ryE2
wlaX2LpOCnstxRZ/rDEGZ0arXBemCXBXw3zS4JfmQzE/A8pvSuPZ7WTS02D4DDJMqErdNrdB
zbXhCoKPS25OtmbH+0+HUvUEFNZsxb3G9m/p/8TdQGa+r/cg3gMCuxqwC8k8wc0iFBsla3bg
dQx9q8DxKT2alLFHLi+lhnCopZMtTS9MaV7q7NQWaEYTEIQBER1qhZdOdViXhhRmO4BYUHzH
FByJs0lmBpwWDCES/aDoocz5HhYUSJUEcUQjLkYsX2dZ0aRk5CCvR/4IXTFmwNdybRl8coKZ
/nCirl243XilJK6eJzvZo9J0BV6R1ODYMWQTxZpxo1dVTE93lLaBL4kjrnAVQFjXg0ppS9Ua
7TkJOz5sgxq6L6NyqZcN8GUj0vWk79oAAAB1VIzVDUJdV+nelK7GiufHal2RtOZLE5WzFVdg
8vU1eRx2TN0KIQMGmMsEoECITTgLhlqBQ08OBDicwgkClimQPSo7gUUkC4JEFLr/+5LE7IOY
sV9WbGTXCxSt6w2MmuEgiCBs7awaNBhYitVL1vxIKzJxAwW6qcwqFAIGXwhuqylozSh7oMrX
UFQKOFDAzI3WYM/1O2kHuBL44/0j1RW8bwhiglEFoCBSTQ+yB9iAPJcxUQQOZsh7l9p5Gw6N
qhVnqUSLDxpCmezOMt3L3u8gaTY6jJM1iH/QcK85L9NIBmYQtQHAkIVtJ8JlpvMsZPDEOuG6
rdn+uxxzaONQSsOywiELdVAFgrbCx9aAcHEYEjEhCNhoFApkAhayAKAZK0ploOWLbCAoPJ1F
xgWYE0ahBoJAqlTStSal4kkDdXO8EJLtsKXa4mL2AEKwMRduciEELsk8gjElbo0xxIxSwFIJ
dXxqcq0srixrqyzm2oRRxqibZIl0mpZbKus6lW1N5qOB0QufBKqt7OS0xFqaS5/lbZjUXhkv
zXXS2pLU9I4IEzcAAAB5bRcUDSr89vYecRdzBYZlMrlS3IeeCQxFpVO6SlzfqKLpRqYiKEhQ
RujLQY4K4BILWiQMzCCIt5zWxBBqg6sAYWPFF/xAEXCM//uSxO2DmZVjVGzpGMsJLmrNrBrh
2kmKagn0t12VWkUYoiigy8xAUtBkZ2FN2so0s5NRA0SoxuOgaB1LacLFGGcwGIMcnq5PpiZW
BRUy4J5uZXmMCAjHECocJ3bMm816QT9ShweH5lnf8rM+X6aDUkMNMYssw2qkycqYjKjoeXZ/
h739y2iPTuzZrO/uTUU+qA6dxfEHAq2pdyCWrHgBFexGYzQqelNBIW0YCtFNJj6cytzRhQNH
oAigQkMWMAkvYTJuMdjTGzPI42KjghxuImMNCcA19T1SOScICAT4EMIgFuXXEJDUVn4+phyt
qW6AgqIdpl7REQVhGYNmT3XMypvHbae0pgsLlkXdq6/UMSO1NQ9KpjCK8i1icfET1rQILRRT
dPVLN9uqyM290Xce3qrjxL1jFazl82EIhu7Y9IfP/uczVLGRXJ6jeK8zj+VNmyanl7IqAAAB
eYUBrhI4SGJhYAau/VmG2pTjrO009xpAvqEwW6i20BKPauWMp6hU4LFK5CgQKHBCAmIFiTZN
QeXMIyxIsIXGQUuS5p2LESwOnP/7ksTsg5j1n1ZsvNxLEjBqyZwa49+dLlOIZZEQYQ6tUACj
BYRcmqIFi7a8pEvQifVhZmwiG2grZuQp5mdNjUMo24NkUHQsAsOJGEAtDuv907a/GTszgu4z
7RdY28Jw/Evdrfa5xVktU4GwJk8so3lkH/36WbPZ5NAiFJlXrul73e172vbJp2HLD5hZGEX0
Lbmc7F5ZKAp800EEgYuGqSIyl45TAz+W3GfVw5A/Mph5y4g+agUAu41ZZ40JtWttjGEAABiQ
poXtTnjBo47ZM5DN5U3hQ6jbuF3kgCQ6ZKmSRLSBlJahjr9sNdtJhB1/GGtYfVBmIqdEEK9H
GcbrKnHZxQmI/EYeTCybmZWHb6PHYL7GATnZcHHvpJ0jlszZhidZog5ArXTZ2MRn3WesOINc
ey2DlI1llz11j99+J0YpjHgtn2n2D2XGpd/Vu3p1bwEqAAAAdlpbEuATSMHZgqs78paW/zyP
q7WV5L9+nLeBKNXUWlULdEuIPOgAAHXBcMSjDnA+MCglyneEUJXoWsOkgatJRiwGawMDl1yB
8HDip5b/+5DE7IOZlW9UbLDeSu6zaw2Hm4nQarRQEQQioNyMKEGeNYGAkhRZxE1yS4ilooAd
5igii6juBvsx0H4eZfUKQlDxgMDo6Veql2sMFpI+cxmOhMcLMoCyik210R2lWCUpsmGnJI76
kG6RIUSrD/rTMpwja6NIPwHySdmZKoDaCUYazUZbk8Tq1I0v21a6JlJGPt5u4oAeUMDvB0dI
VuK0HLbA5TDp6Ws6hxS13WEQK8KJi91UnWTtZaCR0vxKRjJKC/aEAHLLWMDQDIET6gVhZYWv
MhgvIDpEAIGAGkgKSpQPVBwK7msAEAsu3dKhOlKgaIRBWFRPct11rYS9RV34NR5dJtEq2XS2
MRB+XEyrBuLD6GuWJZYhY084bJAgJ6V5aRKknmsWzZFxGXKFzv3zuW1nZGqSRBOxq8u/UeSU
vdU/d+p0bL62OjZzm4hSWkCaf26KVgAAAXyEhB4ueZhKdFMpUyZK2QwLYfdnCrHrj7cGctHT
UAocCKAQtDIAKFCqVKwZAMecoUHMwYFGCKY2V2YNXEgxZMxxjmHCFgcE3UT/+5LE7gOaBWlS
bL08Sv6u6o2WG8GEXyjumesQxV1CkwBwCOJLiNeWN1ZayFIlLRA6TNxl7nujLn0QWKgLgPmz
tg8Bbph8FxZQT6A2YMnz5tatcdZXTiBFZPsrIZ+Npjruy8039SMB7gu0IS3CTZCjbg4gRUYx
iGvO1F1k7L77+cOXcEMTS1KysK0tFyN/JDHl9q1gB50jUghYsDhZCAYUgIZI1tFR8XXUDW5R
P83JwGnTJZQODQ00gmJopgoSXhFgwCJiEENGkDjMC2JHCMmQNhxnQBGmNAmISsmQBmMDCNYZ
gs8ZiLuKJgEErCowShYUDRYa+4yV80llanEep0FLnGVOp1Pq6fpmDswtmsajFHfjch1PTVrV
qn+/hnSfc6WKu/hFmTTbk3lzmsuqptXHqMaGj98x3nGo6jZfFa2my24xLxtftvkzZQldcbzl
sAQlsgXoAAB0nxIuRRzDPSIeHDEfFfVmVQy7zll7EPkUmSlwy9hIPfhpyxiYGuYOhAwYPATW
CjerDGN2kAEWaM+LJDhAWwix8YGhlMuWXCMgQEQQ//uSxOyDmU17Umyw3ksCrmpNrBsYSGgI
aulKUDlwBcJZhHQ1aFtrkbkKCLeJhiFINSreIjNTZwXsS8qx1eT8T16JsheOArMQdCJwDGp2
mll2VTdTKgzq27eVoNBE3aOANVazyz3LKKwpGJxouXejNxvGN/hieu9H+W6PVmS9Pt/x95GG
tiSbp4qE84f/1/nbDA9cAPxA0QJJprxiQbNEgngfFXEFSd00s4Yac8DRnTfFD9bqtSE9KJAM
tEyasHOBIs8BiBxgDItrDkxWAMCPQzOEbTvGQ4OPGRTmICl9y67nlcgAoWU3xWEDAjLbl1wr
VWExFaY4iUQ06H04Us4s2RW5tRYS3HVjcrZevKnjcBQMC4WCcUBgUUUOdznaolzriEYyhWDn
ZCBpCi4xCZVkdWxxcvSdXfN2UiwNlVej5HI59I66fNIqiENEaxj7jTUSihg2znW8RQgqAAAB
nHRgBKEOwKlGjgQCt1pmuu5JLriv9DwjCVuDBk6RGOUFNBBRI6IKBkTIQwn0vMHEBhYI0GZS
wKXDNAk++GQKXiIIFQDAi//7ksTtg5l5b0xNYNjbFi1qDawjET1Fy7B4gYQkBRUhcsFRQtLm
EODuwrOw9EJRdeqA5ibIFBi7LSXKdi+ullbWbD4aZzIoZisgoYrKeWqShoux/VLhVvzF7NGZ
OJw2Zu+m3PppuGShL1MJMfiVbvjax6MokZtVLG4FUlNX2fO1TkBMoyiza/nFet+emmpkqH3t
AOmUNdB5xhDT5CGgMbYGANaUwcUMJWFe5J9PqBS9DHjNJi4CMHvjDKMUwwag84DYp6FU0wCg
aAFVjcfMZA2iArSbrZECKSg6w0RCJ0y1EFl+sPVwBggMANTBYoIgbsX0LAAQ6qFkUnIS0Fm1
VjfRlSuVBXqnJp5oJfReEbmX+gWPQFyNRkqKJMqKW2ucyS/Po1i8UmHLqXOeu6+Oe6HRhDGl
5WPR0Qk5NIFPaGZ01zZbkWerwYtwS9QEoIhsJiZF6na6AAAANWy6ZbACiREDQZZyvZDqniRA
KAqBFUGnpuoIQCCVwsKBgJMSARRBMKBRCGEYYxgUGkDAozTLw6KYwQXhI/SKwEFmlCMnCNKg
gFb/+5LE6wOYxXNObODXCwmuaYmUj8rgbGFTxQDdkLsM0QSdDBgIEEFsoKBwDkQfMWZCoeAI
SIT9hQKgj0qYzy7Fb3ZQnq5dlfrosgg2YjdGQokDQbEQaDgNWDaiooLCy5DuKyKtJblnslGl
SQYho1Bhho62F4IHzb3bSN3qFpVSu6cadC/P/3zUEGANKgoKFDb55C99YCnlALIC6IANR3V+
XzJhlrQAwFOJekOMRGB1EmaQoIrBiyHgooxEEHlpRAIraGQiIQSFEDxoeH6E3VRQQkmQCX4M
oYwlB9VQGDh0MGgBwSISbpVSNcYQiIZKrOsBpFeSMDVCZO0yoJgsKicjdciEolSog0EdDTsI
4lUzFpBQrkmepkp2esOi/kzE6716k2c+mM/TxFMWnNpDrdtRmJ/ezjkjjIQptjIJM8uRN3Xd
5DmYRVZyW6mxeD7DgYFLaAAAAHiQUY4wZ2EYeEgIFRoXDoikQgQhEHGQtJRAUbc9L8oCiIiY
guYIACQJoyYYCXqVjTOBRQyFko0/AhoM0BFA14QZSB4EgRIOl7xWYw7C//uSxO0DmY1bSm1h
GIL2remNl5tIZNY4hINEsv4oqZvJES/qRQqEYYoAHaWXAQRIbRQhKYi6DumAim42RnCfq7XI
Z2ytrLOZcsJPWonKJWMhgKkDYSWLRK6hXEqtzOoiKKaJtVLauWqOQxly2v1FLZ+57qvz+Ns1
6tItOo02Zt0pHH1SUpJ3OW3GuokGkRp0EGr8UuXPP91rcALxVFDSkDmTCPyIGBjYFHoNracM
LjQMDlK6y7xCFRvLZokAQSDhaeLNR6tDFPIEKGfWbSxqvmKcfJxR0wI9NgpEaBKq5n+p9lPI
XhGwwLKKDKLkL4hHQZLqEx7PR0NYAwgy45bstvOmOCuQtwECv+syCFKaZmbV2mzzsuPTwxH3
7j1+bik7N143nSUkrynqaR01emsTOmczcl5Jk1pkLzElTunEGOiSLSmLKCE2sh4e9hi4wxFs
0g9p6PttvYZtePotNEwgWETj3bI9f2oAAHbkAXCZzRoSkEAeBx3tYC2RBV5XFZw153nEITEo
2ruAnMqICMZGgORNNtQ0pDgRAmg88gNHuS+yuP/7ksTug5qZW0ZtZTbLMixpDayaOUlgOCOn
GWIMMGDCLZIVgyEQFNlVXFRhgtY4KAWU+D6mEU/adQkUt0IDXk6TxJYvo4KwcPX4Jor1NJX8
hVDD8xjhIqagsxKMR9LEzsm0cFFnyiyxro5Umq3z1XNqVQqTesJFyDqjbRIWJCiOMtxRIBnJ
BjtitxleZVkDRGV9QS1JwnQBBstCoUFGTLpwM4USwBIZq4nbKOGpiJHGqAEBGCUczp8UjBgq
cdcoWRHBhMQzgg9csqSBGm8c5xjpmxGXnDiFfhaIwQRQYmfDCyJpZRmFPYhKR3SBGiW4NxUr
HAWmiw8BKmlfss+LSdpVNurLuEgcST0cosKwQEESjiYBSKlJBiaYlZAAEAUxisiE6s09CUqn
S05fxCabpmN3ZEWSGnkUgqjMkwKo+c7ZuVqyRHkzhZ57Yep12jdFJdZhTlbum8oAAHAQKcpY
mJkZjx4WCA1VAcVk4sihcMMIAAweXWRFocQveYEMLrLLixmWyMKRTJDAwUFMMPDPowxZQ3DY
yMELYwsjIgYwTNGMGTT/+5LE5AOVLQdMTGUzQ0ywaM2MmfkY7C44DgizRmggOSr+MaBC4Mtg
tRsy7ENBCKFgQgJpjs6BSIy5gvklsMlBAARAIg46DgtFtYqdLTIvTr9gCYT2uxt4miP9PtbE
g+ukiZA44SlDKZGdIGgYpRRGalOCJYsNKNtomlY+Uozax0jii66WW6OQ2dpVcaYQwWlJaPh5
rSv1Xz76r5GP9ps4KB1GHAFOOiHI2Gtt0IGA4CUWFV1NEWHIhiNswi7ovkDgKDJuUEbSWDKF
kUiFLUkVgEmQUg/1Now+5dkuatYvoXtJiMZMpWhu076KDyImJLqZF4GLswZs/7wr+THij5Kx
xqIyLsQQIgECgcCggIF3IQi3mdSlkKIT2vzud83YL0nce6iX3EEGSQNsxU/TkSeeb70gXfJ2
hu78KRuOc0yZPQb/uommZya8lA9ZNJ9+WvoAAAA0LhgyUAwZVWDSoygsvUXSogcBCAUEO0tV
A0oMJbx9DVFUhKCwBCASHBhcHQxIUbIoYUYRFgKlMsJDugALGFgHGcF5TGCPs8RGjUIMNBz0
//uSxOwDm0FpQE3pM0KwLanNnBm5VXYeIgAZM4FHsNJHRRUB4DiAWPLi9aiwKTKgA0Umskmv
1NdBOLLoSYFVO20VfaE3rWLlWotH1hqRLkKVYLGlEKEgpWSMqzE5OBowu20fUik/kSOaaNWl
TLds23tp3ONU6rqcEo5uSq4e8+/Mlef37+L7co7J8jY2xL7ewAFRGXOe4N6kBxMBBSYQk8rh
zAgmoImIQCF4paxBBxShFEvWCgqZKqopDCjw4ooxKcKLiBOZQGZpuYrKHQAQrQoAWVIoSPAA
8Ee0Uy8UaaSYBcXiQ9ByguADTISqEo1rIDrCXUDE7rCcSygwCAVuTdWwrxSxh902Guq+UKfa
OzNmnt2BY445Z5FIMtFqkFsjBIIROSrmljk6H/TAazlrqrj+XyGrD3adbNlF2SmT1SnrbrVX
anv+qbdN9ZmEqpFz0CajVeoAAACUkphQc6JlhxITQjKgJVMISBBoBFQERQFlUgXTLyJCkx8l
FpzAp4oCQliyB6xQcXOFeN+1DBpn6YcyCwIEn5AaneYQsZA4DpJoAf/7ksTvg5m1aUhtZTbL
EK2ozawbESMSZYBWJ7ixUxwRNkmCONSHWCLqqWr9QyCxFVzCgRjZQlkSaLXjzlhlMoBUwDAG
jZdAOhU0MBhQJPJVEaFmdQmdWaKwRHJsXNvMHFEp5NHL+MNkTMeLTtRbny4XVVKnuqF3sjZL
rOkpOyUlqdHmItxhCTG/WIr7c3pFmChoHUa7QDOIBp0lRvQQBNDgRAELFGoBQYmKu1pJcdnb
ZBgMOASESGByQ8W7RQDgasgkjEAM0cooZmFFmORiMaDiCJAStMZVUhzYHkC7xcMmzR7FBiUc
ZLM5gmwMs5wl7JApaJSrWLTqXhAqO8ScVr7vRmUNcWJCG/d6P527sqZxqUQ5du2C6yNZrCBR
6cZdbFIJybabX1XflOUSh2lNzYdNBHouqn1IZG5TI9gq3QeQCvhQlVrCNH6tte4Q6Ublngsg
mRo6nJ/B0WyXC/O/2gAAAZxEEC2ShQgtQwBzYOJZIX/TXnS7rvvOzAtgqgikrYWxaUiMJQF7
hCWERg55BGYBQQSvheBtgKXpQmPKKLhwgjr/+5LE7QOZqWVCbWE4QyUtKQ2spqFQYFhzFBL+
gwo1RyIQwB0Dkx1JKaFVAWSRmLhl0UuFeyRRRmqdqXKqSwtKp4GR2UxzJKpowYu1eGtj7JaS
PbNfEyrlsTyrhPW+3TnLf9plm1WGllMSrcJVLO6m34ml8JEtIPmWqGTKd8zN/djdsjAGhLvu
87Tg4YEpB8rpADoXJHFTgNuYh0TFhJXDI0aXm6T+MBjAoDTvL5rDJNCw4KHlJBFFGEeEmuLj
RYQBzCBgc8MoEBxAeVjAaHDZGj1iCVGxU5kNpQEEHvZULGEgCIKu0AQ0MBOFVooqmQeLYOqX
HCwmmMfVhS/S8mVTSahZO/kcgGUSyMwPJrFSvJt1gtSUkQ5xIkgROwo1A+TVuXSSZxeeyNFV
R+VhN0XIfYNzWllYxDOY0GXeYnZGY9PEvW3iOxpefaT7e2nlPYCC5Gh1AAAAVEYCORBsY0YW
IjgE6qeJdUui/qiyJ0MK6VGl6PCQQKBUIDhb3IcgUDMSOMwONKmFYpwpbzhnwwTEz5wywE1I
scBG/wmQXsOLAExB//uSxOgDl+F3Smyw3AMKreiNrBrY4DAjDiTDJhYcBghnxaA4wAAFJ2Vq
WruWsvEDAxQGXuhCIQwPFgCsZahpBQAT9dpyHUdtn8un5frPOKTO7ICIXCAmkUdJhmAZFZIm
CgaCoPLMydoiUYSlbWt/O9L5Uuze6diU5XksjiYkZRqKL9meLmu2/4/y8WVee9K8/MzfF6Ac
QKTO0jHpTKDzAtIaZnHxoKSAIkLGS6DEC3i0DUiBCedQHKTCmhZWMnEqwygcqoah4XeBLg2S
dzIHBDDTn1GMB2w5LwG2ZYhrBtMV2b4AcGI1TeWYOQgGCEog1VAWDo3OTkVCiCXAS6TsVIKB
LCJRsiTWpFPNCeaihuBMYcr00CT8lzRDDB+bRDMT4ygJ3sQ2bROo5tpQlS7S805TXbxpWruU
fGUU55vYf7nX3IauHth5DVi6O38w2XZ+32jqAAABmL2nJB5iY4YGLF3xIQjoiECYOYE2oGAE
Yy7JaJZBiAOwAqEiwKvDAwMII1jEgcbGVg0SGjY1ILQpMPBQAimCEpeEgGx5cMnDH9BcQv/7
ksTtg5mxb0Rt6M/K96SoSaymafZQpO8FcOeJ86RcQZSCgtLNQBYzcwuIvKXHUbQVQHukuRG1
4n3Xw8zkuLIm5QmVPXBs3PduyOI0qALmq6O2iZyiRnDTsiw1NE+ousupGVSTRQZTMtq7SarW
ry9ulfS1Lae1hckXRMrNrIiGCzJst2IdOoeEs0fIkdSk2smjNHxk70S3y//QGEawBoDeHTHG
zJqREHL3LTZIXXXYsIDR6RKmIhAGAECRsxzhHZwQVMEREtkVVRmgxixgEygwoBkwybEY8y7E
Cjk6jDoC14Y7EIAEhwUeQmF1wESe2gAIwHBHDUpUGRfQCMFR9nE1Uki31QvtAzGIddplbnQK
jJOZMFR9AJGkIrFRLQlIqIxNbIrWQFZLOWHgoNKR2kCrSg5dx9SGXMuh9qZVArztv4+f5U03
s3ZfPZsIZts5++NIXgI+qxH/7QAAApQSIHEhJNXGEjBjR6YqDo2AIaU3exvi6rCSQHR1LPDQ
knKYEKCA5hQYEUrgC4U1xgGpThGzDnDBBhuYbsmIzA4KEKEyZoz/+5LE7gOakWlEbeE2yvin
aEmkm4uR0OahA9FqBy3xf5QEIAFCBZJfxCAtSq8OBCISyRw2BlokGSYVCF6sLtr2adBdC4kx
utqZoZRSyGcqaxzNWUTHBapMKJo6gkgQdIT4ixwdkJ0LGKt1eY7wPDEicIpmHkpUxz0cg5RZ
EEdNTgZlJWYX0bMQZKfmRcpa90rQeB0apmZqBslKzgw8SKQAPl5AwvEIG8yY6M5drqAC6X0D
ClkhUEOhUNNSUiSNA4RWnVAI2ybQ8mkHgQWeuYIOGlTNpEQBmigkAcLMJYxykdhFK4gAjHjE
hzIER9SWKHFZVG4GhaRKHdIJxXCeZH54WgSaEz06DCgsBgRnUUmUXpsjcIFlnNveTQFCiJA2
mrVJxRxnFJRk0vU1rKXWskhI5RdshX2oaq+cL1qGdUjHJGFXIJJ0uuK251THhkJ7/DlTlsMl
txHtPXFzgJr9/+0AAGBDM0is4pskLAxUscAjh4MhciugqXaJgiCIIEDQ8QhWBkAYRFQMKSKd
caDmPZmFEgJqZZEa4UIb5xBgOcGppA68//uSxOsDmWFlQm3oz8MfLehJvKW7CiS6ZMgNAxFY
QHLzFgi+JmxTA0GwyKGDREATlSILrNGh5EZqRe5Cp9EjYSwFlT7sAcd/Bsfroz47QFy5XGkf
LR4M56iZgcP6IhX0w8SBEstzqt3SL2ciLeSsYkagpGUKw6ktz93bMlIJEbjj2hxTZVyDpMAu
We7b3f/6AQodwUmKoxobKkOtAmFQoGEwIYKErvFixH0hDkFU8GlBBuYGIl5zBwczZoMhHBgr
MmZgEWECQYsbmGjhrhMiCSYnRqZR5lDGbOOmDyIo4scWoO4RnRpkIlmAwmMrAXqXQk+RGOAA
lWUoSAVKupnC64HTVZtbbxrsqHjUQCAYF2jaIPiBo8TzHVVCxmhKgRoVERwLCsncwMkI0Paw
yuploujQyVI1k0Ju1G7ixCEnU03+39hcdhjLglKSszHubhja8X19f9q1AABhHgP5THLZOcLv
ggoYEWIxhERAgRIdCwWRFgULAyJkSQFmBgUEpDKRb4VzNwwzoQEiYvwK6EYh21kcZnhHEODR
jCQHiVzG22CnC//7ksToA9fBI0JNMNwbFiTngbymmcqMgskLCB1ZqgAocQgFxAAE1liRgtq2
AwhoilDMmSpzICGXw26tlc7WltthEnQhUdKBuEBSYJIY2CxKLtqGgYXYOzG0g+TMlhWZTMzp
VkiTETG9pG8lqyrCr8mtJq5cww3rCgoUiquuKECMvNqR9mJt7ORZ8J7DpQhT4epeai+DzDw5
Eb9AzB0w6FgPJXDZSQyweZaEABggin8r0vWj2PBauUWyIsKBIxEZLIhdQaZGFT5lBJ7gYXBE
4kMKmgAmfBmHpgocAmxyFAGZGMGGGApbt4m61AxiQoGmNTgJMWWHgBCBRaIAREEMMCByJJdB
RrsdKgNmK72qsNpWowTLKBlsddloEEupL5dDU3RvHfjeSyEUBq1EJOLyGWBuJMJj5RtlhQ0y
SNJIobOCsI2TRJTJLlqFrhPIQk09IgW3ZPZMopZqpChixdqztOrZ9jdv0gAAsVPmxZA8gbRS
qo40DF+U5VLkPkwA4k/CEtNxkAQWNAlQEygjRHNOpeJmGFSEKlAq4JeBMovCYxhfZ4X/+5LE
7IOaNWk8TWUt0ygnZ0W9JfllRZUziqHQMTFIBgMqBqkxjGIb6AV2sJVe1F4WXtgXS49aKP40
2HaTtDSw4CnF8DMQFW6zdI0QJDdFYONIoHKQcxFDcNGIGn10qucTOY8y+0Xcd6Od9r1eXTZd
xanX+XausoLx4ga5rRV/oAlyeJam4sJjtUYmhhByEGyEYQNigKu5QcxMDjTPAguCwqYsGigG
YKCApEMcSzDh4yEqNBJAKrGno5iVFDQAfwqLkLQ2KALkCVCZISaKYcZ2qU0ohEYzpY3phhQd
QNMHMEJMGML2iAwXXJkxhyCBySReZMFNVIZKFH1Zy02UuSyxwDgtDsgjQgFQdSMIRwYEEQTQ
RE7Lx0Xlhw6PKUp9gUIibpLfNGVT5UisldTNPltYwZlxOZlN9aysVHF8P3FjSQ5Pmlz8/K7l
Sp9nPpHHf7d+tGT9ZgyKtf0AgoHzqgjCo+MGisw4YRCDR41lUGGHg4YCCgqEwgKiACBcAgIX
CgOJRCPBUwALQsHVepkCguRBM6D4AA0wihxGLwIHDEo+BoCM//uSxOUDlPk3Qk1kzcNlKGbB
vTKZEFIWMaHghA6C40Nj/pjwP8iWwMQiU0EpigEtmBlz0/VqmsywbZl+VU9XCUSU4n1OoFYZ
GqSDnCeISGRyCqijP3Ds7NDu5BQzV4UnJcQ0SGxVKfxmVzp4klTV7y5ZR1Sk91lE/fqS8xe6
J3IIsYfat97MZa3uUY/832uZvu08d4Vq3BmBdGqgGicnInGGPAam8Tkp3F+ldmJGrGZGNCS+
6loKSLPMIEDGgJAmucGqNCBeFRZnFYqgID5yWxoQoN2O4ECsHM6GNGIMDojMBEz0A5VpBRJA
JBwjKNpSAUXENC2qCFkxjgtNdxh0mXOy1qaZsef6TyOYFg8KxQIB9csRmiICDCNAPATpdAUQ
ogucJGGTiMcTnBUyVGG+usSlkLyVVyjTELQaTSS1Jj5VNsQSxKEU7V9WurCcln3O+zdZzKX5
fmvqAAACjMEiM4WSjIxSMTjkULwQNEMAwXhAiKAMBguYODSFSRaewsKZD4MFNosytTIJREN3
UgsHL08zrJKkpgbg1RTJYo+CIzThBf/7ksTrA5lhOTouYZaLBygnRaymmTzAwyOZlqAkYwQW
1RuV8EFoTky2kp+pwvUjk1JGWHFisPzsRlxYEeR2pzCUm8Caq9eerViHc4oJbyAWDxewteZW
LSNaN1edr2WY3Xbn80fqjO2GksB9VyElrv48fOjJoebny9Mmietmvtta+NC5sgrVq172k9IC
uhrWlv5tO3mN9sTEiD23aEAGMZizjWU3AhCHgFDRQQBcAcZfidaIIjAEtVbwcCNOFhSJAEjp
PlQSNukRNAxFrwdaKCCBc4GxpEHcFAa/XLEAZWQ/4WRQcfFz0Bo6IjciYr2B0mZ6TRmsvyHY
eb+5Dsmjb8cqSzUoc1awnZeup1CBz4MXBQ29yt1jiWpY2hMRg5zWLMoWCjpLdK4wZlbe1KKL
Z49upXLKneVr4I0VsN0wh1pTYI4bcUYV3g/yD97qAACTBT7OhKgx6XTToZMQoFFgRBIwUGDE
AhQVMChsBBcQgMwUJCyyAsFIsHAJsJrD5khQoZNY9NCHAFgqGjTnzUjzEPQzwLDBNERPRxkJ
GCgMRPzUChj/+5LE6wOaFV06bmWNwrqpp828pbk+W0BB4WNChcVKpeBUeXTcgRiaFBZWN5W9
Vw1lCJnywiFSzmgS12opeZ0z6R2mX1pyBaWHYYeCGpRPAmeKm5TAUVQIBYRjahlI8KzSNEgE
aYiNtIwsmISREHj89abYQEWkDaaKLMcmaMkEV16fTCMQk8Jtoeuk8UNNVWIMTWgZKxeVDVSx
mIHZ8x2ZMUG5MJIiiEVL4A0CCEYhDC0RhIijKkKOAQFFS9okKBU8ZJA+gBXG/UGaHCjMWGBZ
YBy4ULm0TmaVGqQAKyZMWMiNmiDmAPFQQRIBkUHAU9zMiFuF6lD3PdZ2U5FdoVop0iZVN8NM
Bd2C3LgtvoFgVt3wjWFPlFZ6Oy9+5TfirI8CR8wwuMInQdE2TIg4dAsLq8ToZJ+6Mr46RQnu
b4rOJUesofHMmygj+lLdlS2ZVIn6qHATDwZjSV6Wz7/uAAHhC2MZvMYHOXcMCyDF4RHTrMkK
AJEoLF5DDCEqSYeQjV2qEgIUikhwETU3w4WVHXCKUGfQYpQEPIiBGsdqI8oCkQCK//uSxPGD
m1FLNk5pL8MOJmbFvSX4kaqARgB0BcaXBliYpcKBBwhpRfRFZ3GfphuOkk2JyorGIm0R34Dk
mbJtQVTIBkI6xoFik1YqE5OoF5kBMNEhVVuRERpCgqeIjx1C9DJsUo1BpucWzV47kSFtEuZ2
8tAUSQrMpTk+LGagNueiVQv6iaBHkKjsZLRy0fA5B06a0iHhuUzIxODDAK7MPjAODrEjCgBM
HCcWA4UCI8DRYDBwPRlWMLXAgimCaQWIBRhThmEJlgRgQLJTjV0eQwqTFgKpNcrIDxrzwQyE
AMskBhaq6lqXIKAPOPFWIKrtbQaaGmAkU6zHHCcZtlb4JgKD3fbI+t2hlU9psY1IRfW8mPh1
GII3BkSkaUiFczJlxPPzE+bKZZjRrVp8uXlM+XpYExidw1eqevS0jXJX3XHWv92tqVZ1r799
2qbDtdgs2d9TWVu4+9JGmznP3QDEKrB5vMHAgzQ5jAhPHhoYHBIWDZbsMNIjA5gkEmFQiBQ2
VQgBRQILvPDxgTYjBLfNSbMGbO+tDgRjiKPCHxMwJB5h3//7ksTpA5h9UzpNZTMDIykmxc0x
uwkgBi8eNISAqWHgA4KNASS8ZKs8wZNeyZ4MEQthCnDWlMHKo5p23/XtF2Vue5UPPvBcRg4A
wKh4RBEyCSAjJxNBhV5QMJA0FkAebJxxEmSCoUQBsUvQEooRssE9vhb+Ro2NFrlOzC6kCdSp
sfrYvqr7b8+lFtRuE36yJwU8b9rfvevfwHzEKMxAiOEEjqz0ywtMzBH2QbDgtTcLggQNqxoy
jxwvKVBIAHA4SAAJjwRgCQkTCBZ0RhmxQjBFDAqhQqLRDEDIuUBh7cR0IOgUcTGDAFVJRAsB
W2hwRgLAFZLHUBKVqiLBGaoVv3AUDMHxJGA8CE+nFYG2HItJqz1qUlJoDZk+McfOiOPx2uMl
B4+YVZ46Q29br2MOVP1tILvWvWlV0SvmlTC+9nG7ur0n3zkl4bIVpOj9db43fcZ+v3t3376X
negIpQ/CZcitAIw4RPI5QxqI0g0JqC6IgUYYBAogIAkx8BQPDiIMFFZzHh4xQKCAQqFxiYYL
AxAOCiIQAg41GKhwX1UICtJlMiP/+5LE6QOZETM2LmktyyErZwm9MXj0qqh0hFGXvYcCZSZt
D4enHDFrQxQNqoutxYBaLRkWVrCoLSWRMHaCzCHI1NOxhIH9ir/MnppmBXJnKKOT09KpRKo4
dDysjiVB+u4pkg1MTKA9Pqi4jk6B1azOr75SNY6tRUYadS+vtFFSB+zd5vNZo9d2knCE+euv
T61j4N3WrN45kXn2CWoydDAqgb7BCBENAATIhctCJBwgBwcSmFA8KY+DAsLAaYYKFC+ZMZtd
StHEsCmBwpAQhhsLobjnoOoNKMGjGsKgREsgcQXCBX5n9IZmCANxSMzjEoi8sELMWNTA5JC9
I0mWlggFIRCeVhCGJRIC0SyO8e8Hy8/PTsbQjISCecF45Z1YuOBL1WfpQutHGVESUvP3fUqW
UbBbRJaPnSAqUvLny5amLUb9dPmds625bO322dZpTHMgejBPq6c7/Hf+1RCPjyqKM/jEyE6z
IJbHAiYdFZiEBjoEMMBBMEwgAEHDCwcAgQRSMUmM0TEZsxMcSLBYUa9MFX4PFjIk5KoxR4QA
QMFLSmka//uSxOcDmL1JNi3lk1sBpabBvLJZjVFOEoZusQjkmS6ShCqytYGBJepnKxShQWVp
Hof22hS1prOHxXmtpyZWz56mn5M+X0SRMMADDoHo8Idx4H1CZCZOqMic6P5IKwkrD4Slp8oP
DkkIy001K48KxZ8zYT9iRMZK3CmujXJm2uk6pLtVlqZZKyh7525jU7DyhakMnmi5dGsKDoFB
zn0w0h6Ebm5JIOGOkxUBCsIMqKxIVAQOJAoGFCITJRULE6Ac2xYxCgaPmHLmXGmwMDIc2x4N
cgVCEXhwwYceBgQNEEJIt2mcPVTJEQSYQEEx9OpDACgGIDRJ8XISqSqHgc5AqlMsYi9bB3VW
6wWelsPQS9jiOjNypscxEYLbnAMDMl1TBwH57VAsf5CdwWeYiCc7QnG4kjsBmV0sbpUuYXyr
b110aRWsY+6uGX6Obb6ZC83SrNpQpa/KOLa1r3jAgquxMIJj1A4zQhM3kTAlIwkOM4CAIQGH
gaB5fkKDAGFC+pggWhAMCAZMwnioMUYLCkoRJGsEj2cBBoEgA81JibwKDJPgRf/7kMTqA9lB
LzQOaY3DGyZmgb0x+IJnLNgk8XJICDuATILuKDBYAmIhRgHCxjqPcvBESCIxEFZoIb906sJh
iOtNd+AJUqBnUsAUPzNk8Ia8GZWDyAI2S+eWJCEOByfOtMnqgun5fPCYPjNCmzGuXnp1Q4Xs
oTrifkD8aZWR/HRNDGubNYeibicpfKdH7b/UyGQYj3JOMZMIQIlUxygomyzeZgLRgtHIBkAx
g4MmHgSFQ0YhEIXAhKqaA4NdA2JQaNCiIA4TwdCZCJzHBVszQUvha8PDGClHRAGYHo2GARhl
ZbIRWJBGbIdJ7nFUtFQGFJarwAQTbEAaN882ymMAoLCMORoHJAKwBgLHQIDPw34nG5QhLI5k
jUhLQjguiOeTupxZRDEvCkJ5icJisZJTI5TqH4ymfqVbLqHLrCNbxyrXQZ184vtMWdhrZ6Nc
oi23Q0xQ3eb9bbsabF2kGg4xf0IAAJMHvDw2U052MfKwKemWC6A4w0PHjkGgoGLxoOQSIGB0
gWNAr4kAJKoKnSeQnqNgQNViOBiCHq4BpRgoEnJYgf/7ksTng5jVOzQN5Y3DHCfmhcyxeF4S
NMZ9lkZGiVL1QkQZCSFU1dAQBMLkPuuJGP6vFPtQx+B5IxiYD0FDUkROSisC7JfBUSQlJwNx
oHQmh8nHhG44fg0JZ6hIC9t4wYJY2VwpiyfomErKlAcsy9zDAmnEplcU/SDIGpivBOuT5xba
1gm6FVSi5d0rqsrHF1a53VpaMFgodZjhCwOOJl0w4gTFxoMBJsCkEDHggBQGLw6D0igsEg4f
mFwQEAQhPYioSRYg5kwVEFCicLJGAChusKNBDSAiQBAq5gxcWAFng7ghDLUlU0CQtTS2L9Jr
FUFNxHIuMgJRQVysJUXkpqrC0t9o1Ow/GV/O4xd+qQkwpxyH9bdIQSWQS4tKJwLlaodD5chm
UdmikRzlupeYuvNn1RjxgshWPp+cO6r8fXObmw7Bql1bBzFp6u13sps3u26sYzWN+XQRAIIn
yfTVAIGJ0GTk5aQDQYuMfGQy6KRwNCQMMDAwwUERYwpHrPSzDAWYixSALNGkQYoZnmprIpk8
JwwgaQiCPY5AQnCbwKMhv0H/+5LE5wOY0VE0TeWLwwqoJoXMsbpBBZsiMpW4KBE1g0ul8NQJ
NOLEy8w0WzBNZwngYYw1pigjIC6d+687d3hg11HgbuF5gANYIhCUieSIAMKimPJaUWVpEzJV
WJ2oQhGbCyItwPqLJbE5GwtOkzqh6A9WY8/hKdW16N13rXc6TtRV+1llENbr2vU2zMUPs30J
Lq8t7GhQmnEAUMBkykDQufDDQkMGjJMYxMPTAIsAQQMKBMEBNXxhkJGEs3MGjiQAF1FSwoSY
ThysmS6MtkIYOlS/Ijgz8tcNCDgrXFb1dAgYOaEg3FZwXSRyT/hTMUfG7tfmkxm1VtcJ8liv
G+b/ONF275MjyjA6GDI4og/HshFoVMjqgLE5MxAWKFSCYKl9TEqq2DtIudOFza8tWdWJEq0r
uRPLPdtlbQR6/lMtWz1Xnq1YeWTVeh8iLySFEhQ15/VhCjd13O71MBiswmsTmYbNEnAxaQTL
gDKAYIwuYdCwqCgcLkNhGHkjUUwUmX8MIE1CjUCHjCUUFGnKoYwABRC4Zgci4bKTbhM0MfpA
xw8e//uSxOiD2Jk5Mi5ljcsQJ6aBzLG7jonUPLFyjDEFD21FjkrxkMQEO68zTHEXgwdB1lCh
S81/Nx69TJHbZm/kM0sOjAfqAfIoqoEpNSBMOIgGtQIjscPhIGxyP5kShzbZQ1LiYezI/Xmb
DJi/1I/XlFFxVhZMn0jHPOMQodmo3nGodbhdo3dMxy2QIMvFgiJn1sJRjEVCMGoUeZZnNHDk
9MkI8wKIjAAfMdCMwGJgAKQaFA4nGTCaSaXpwjAcIwYxpUVBNxkvMRRgPFmJiOrbAxBZC0OA
gYohPJjVyDorci4ok2YwKwyKUyhSpEGgpUtwZOmOYAaiiAJl7hEqGiERAXhOU+TAOkwkgyuC
KJSYy0nkKJBMwl0hMq0g/26AqFcjkK05PG1mfKthPVsRqlVECVCXHTCvrLKsQFYwtbXAgK7v
59MTY1Q9VYJIG5fd7CznbhCZJ4cC1JNV+oXkryzMSi94SgABwUoz1b8SLzKO40w5RvChaDg0
yIEKgEYSNBgOBjYLgwiAS0baGFB60kHzCxBM9QUyQSTSSFU8joYglWQVWv/7ksTqg5kNKTIO
ZY3DNCgmRcy9eaZa4e1VQDMYMhss9hYWARNdlEolEu942opFrbe5bksgmTsQa4yZ3LMke16Z
ZD8JcKatR2HIHrs/hx5n5ifYKwI2RwlTBYkcaWgjUFQNBBHEqKlT7Laazch+D1UDJxHqq5ia
Ji4pzKxI0o7CyRhWqfbDZjk6IjbROUYKsMymyrvfIPr9sQEiwX8nciBvOaZBNGHh5nQqZGOG
NmJgoMQDJiwmCRIeDwcUoYGAhSP5ipASsPBawSaG0GVRh0xCaj00tSZuzMqCFEGWCCW7vpTM
pTFQWbsShrXS2QCOMn+5qbzXn1Yqv5aE8qV1FRRaaU1bHFM3OUNibXmzM0dVrjwSGOVXetyS
FpDwtA2LA9R+cGcb4+lQXlggVIBVJCx1BWncj4YacKX1eK6XLzV12Iav6rOhaqnb3Ptb34U0
G7M+zt6TJxS9vnl8uLA9C9kAhGGgnMOADT6BY3UBQbHCsiJTKygwUjNQAqpC16ohAgZIZhAm
QCikACRh0SRMUR1BWgDCBE6aBZ4LAm8ONLgZIib/+5LE5gOYUU00TeEzSx2ppkW8sfgYGMAF
r4LLPq7Xi0FtggR/1heRRYELOYriYqg3W4fqGlk3mCYBhl1OmWMq0KRZRljP8vilUkVEoZEN
xUumONPuFhsT5VTyR2hWMKKU22qZ1mAoVbeGysTuBAY2yMiGafqWA+jw3766+25g0gUj0hQb
R8QJmJ/qFWezdbGM11m/tjP1WECVcaIA+dBA5i8Amg2gZJMYCGBjkOGEBmYYFgOEJhkICgtF
g4YRBxgYLhrDOo0FcwBVUcD/maYMslWbGGdxKxbNDAICNGAQt+y0CCzZXSht1i9IqBiKsCOK
1lXv+vpZUFIIGRp5LCwwvll7wO67bmskgBtZSDCRJFx+uHwrFIwiHcCxAZdNy+Ob6ES4TlVc
PildKdIifY+gf5NQyPjVbHz92LHgwq5DesVjxdfciunZ34+ov+XYFiZO/Xrs/XF0F72eNqLC
5x+UAIlM51NjgqkmKJGYuSBjccGKhKYzHRgsGiMSBUThgcGiEIQIjOzM28ANU7hG0SgPWa6a
upUHurDxYJoDKTGFgQGk//uSxOeD2Q1VMi3l6cMSqKZBzDG6A3KrILOkmW0iDm2c1TJyUqSE
a6WTMxFgp7Xuo9Q40qdS9gpd6arAmtRZy0xYoIRvUuCaSBpOBrTlUOxKC0S1aQciwJwRKS0T
i+ZL246mh6hS0tggo7YxQm9f6qZd8XYpvZq3UXUb1Y6x9nL2g2jt6c1SseZaO1a/Sa/OZ/TW
LoMFGEybHDDQ7MNQgxCnDCBGMCA8xCRirmIBzISBV4HpBLQMTAugPXFlAMqaYQ4WWUByUFsw
SuBgSegYowd3kykRXljIoAEKpYMULgcoFEL4DaFMOwWoYghxYRfn6Sgw145V8n5ElMT0l64X
TIhw9L1dGnhVIUME3ltVHiumM4HijcmVZViCeKhD3iuhurVTiUU7e5K18n2x3Rd1Q2d5PvbI
sxGOA27cPPBvEeQ1wyt1nKZ9D1d7CiQ2RX1kh0w8ivG2SHasyi93u3mqAACTIIg9wOMNRwMZ
mPLZlAcacEBC8RHBixWA9CbT2JOIfKAvAgJEM1qS9ITCSxxYstQ0muZjphly1IrFRXf15WON
bf/7ksTng9gxVzAuYY3DJqemAcy8+TTWe77DGusui8IXehdlaqTeUg3i0HrJeT06moux40fo
FXJRPpI9aJM3FM3k0p4KSaNRnibfOMBXxlk8VG5rg6JkNiPYjAm1U8raJOwsp8PtMTfKy5XD
pSTwbN8N69aruDtylbX9G2S7G8ZmTvcIxPOrrzbaLHeuNNvYV9+XF6zvxggcPYjvEYH6HmnR
yBkYTBmMWpiKCaOQCg2UCZg4MYcRgoOBgSOjhKAiEmFQWQAxAqV22bgoKFC9Rk8sW6TMS9Bq
FZWAr/aAwZFKH3nbKwZc74PGvJqDuu4veHHQcVWJ2a9O1GHm1hq8vdS2Da0ImR1iHo5QDhIf
FktFchE1MpegXm5MWmJjepXPTYsYYShWhK0KggmhBKdFh08WRS+Yk0dkaQ7OGoKsl6Gq1Iyx
e+s5WG7LcTppj0Z/AifMtQo+OaN0p7TNlvNgS21lAAHjB5SOolk1UKzBJAMHCUzeFjcQN9ME
YENgGlByZAI9YMQESYhELal0AaCiojaDWi/KB6AwOqKEqiPh1DXE8Ff/+5LE6AOZIVUyTeHp
wxaq5kW8MfJMIeQvi9p7jiL00GErENOclBCmNGISZT4pFtT6SRvpNe0ojnMRyPQnaudIZg3l
1LHZnqle7jKxddkc9vEpNBbaPl5QxY0NebGGHBgOWm1uc53WXlKObgxKh8wtr6E9fRZ1mOvP
XTk+rSDLEV3Z2aVwwqoDN51iHRjr9Sxb+PqNvfnFzyq9ZKaTl4tNiicyyTzEqUBhOMQjcZCx
igVmLgKe7A7JFcnIa5kAhC0sYRAQ5l4CRqAIVqxIYCmYhsvGLLYZY1Z8VirHZ4uhrzCig6FL
Y1yO6rAZxWG8C1K80QizhLgn3g4yeKVuJ6TJXIs8kPQvUFhVNE8dDCkGpMNxjLxMGyKui7Jd
EUISlnBXriyeV7mrVzdXOlG4saHXiK1kducJzYnKHGZmq0BwV7WzWfVu0War6gaeTPnnlkpD
+ZKPP96z70lMgFy0E7FXoTBh3OKQMzQrjNgiFE8ZmBQ6wM1m6cEFnaKIAjGCGAWeFELthC4U
BDEi1A6QYI5KIWyAhpQRERQtPBiQBCL0WZdv//uSxOcDmM1dNE5l5YMZqKYBzD04C5nwdw/i
ekJGAxmKhClL4b6eIKfCyuDobJEMOhEFto6HMS9FtZOHiGHgXF8wqxXH7psMoxVKazmc1lwd
kFLkRBci6HswII5UQsIYnoqhZ25+zsunFlhQEcxNqquwPm1pVE6hcNwn2qYmhQ3WoFMx5qZh
zai0mxSnm/1j7j18QXHrvu9RiJKH2lYYQVpiEZEhhARQEIyMGkMJYH2NADDktoFOgmAskt+b
oJEF9wXJ8gVZMoWQk2XeZAX/VwrxPZMt6lNW2YOYpxvwzSVFKEfUZ5HIqgThKSmP0WI/wcgh
YJ4xybnShpQHDhwYmtGMJejcN9MtCkVqlM0uLMnFPBqS1bajxL8cTKyubK7ZFC1KWIn1k74T
Uk4Z6NangKVs0+mYHaiXTA9Zav1c8eRYbyd72uDqLEb2WeNiupHz31zmGKhIzYm5lWxtCgAA
0yPePTQTv7o12vMUSTCF8RkAFJwhSMaDjGgRgDWGHqpiQC+gdhOaKDgBSC3EY19kgy3SGCZr
OW1UySRYlCk84lcd5f/7ksTnA9iVTTAOZeXDDyamAcw8+IWmYiwJXk1DCnowuSWUsnclrzWY
s7MkhuKXXZibJaC3GBoBmMxSBMeTorlWV5CQoUhaVHwiHKAbBwSHicV4D1UTCwn5byQSml7Z
zYnF134xIQSYwrZZVJyfAmRZWlKHJ85BDPuuozwjkwKnnKjyvLY8K6ysoeHp4us+42yix7f6
Z2kCIxhjMchOXPCAwzkxjBYeMriU9UjekZoWJgWmVXjKFNEcEKAA1VdXibRb1SQiAgdVEzhk
OaFKzUIAoWgO2FwkgK5zlyMl4GUFiZJ2CaC1HaBaLYP8k5PI51OR0vxjEqIGxlxRR9q9GxlX
VQqpWl+T7HeO6UymXR1p18smmr0MR5lpJStrcZEB5FcFGxKpUrl7EVM6fV4+ZFY36kblpia0
p4TXHW105rKpcHu7SwYTNl/A1DkhVhZlxp/BvAzrV6fMSgbKld9uVQCMBT84KEzka/DnEYLF
pnUmlYNCgKMYhAmN5hkUjQrYsGDGOiVjK8o/KSUgHQgEc10i1KEUfJRqVK2JdL+TobgiHA3/
+5LE6QOZPWcwTeGNwxEopgHMvLlGhQvh13CX23N242iIuFaTtS2MQh42XPUnHuADZiIIBy6V
050Li8WBIEEnClUDZaEI6CcDYgDggkoGL8RfadPi+JAerFhONw/XFg0VIb6SB5o8UmA10K7V
HZsfvD6JQ6Eg/jOyqdLdYJtzqqqFctOlDZ4rpD5bY1uk3YbW8xL1D/Wz700mHlqfIWBoVfGE
FCfmYKMFlwesFbDLdAERaw0Q12GYABgzHEGUEqlCBCO6IRKFAVYFbDpC+CRl1JaHGQ0Wwt4K
8fJxEMCgkBDcJCRTQIGXAsBMyUMA3RvD4LkUiLV5yHShaqSsBwJO6gIeoX54nOyHnsxFKjqQ
DwQ5blOqc6UAn0REUKLXcXDFAV8zI5tqc6JkpBvGliOENd3uhT5mS0lO9hSQXO2sZ1M3W8f4
hqWaSLPdsnw16pEq5yNkaC9iRUiIknsVMMMo8MHjUzfDkaY8JRisWi/5nCEjKHQ8KkIi5YXJ
b4CtB1LDWwpIMyCoKgzKRAExFzkFJ1TVWQ4AYhDFwFQax3huA+WQ//uSxOgD2O1RLi5hi8sL
qaYBzLx6BmA1ypBEjDIgn6SIKI8WAvpOV8wlNpAq4txPT+yiSLOtQJ1SJxC2YQxCEJWjlhmO
bRgKchCAJWukKMuGjldOYhcUUwvlG/QSdfnMzpPKGtZ1q1D3I/FcdbW0pXaFrhW7iUgt7x40
ruGrI2cViM8fvHka+9v49aw6z0zuNRzzLUMR/4j5e2gC2DlpNN5iIzOTjER0MUC0KdGZUZko
JmNpMZjBURlECAhK8VFGoC35fYSdMYseLRsIhVYSAiumiS5SnqJ+JoPQjC3UL+e4eV45y9IE
YyeMQV0zQ4KH6Ts4SCJHBwq5oVBMVRDUCrOkgm46iy3NbAeey3bbNK823iGNMZSJxGpSqrls
5oRIo2ZGPUPTkiZmT0J6qFcf6iZ3KVQxcqpogxokFgetbF2SExrUea0aEwY8sGRgpb10y5je
QNssnRWY5d/P4jE4ePQhYDfAwEuzH4sNEAsKtmFUdKYDZPsgv2EACyI8cJIF908Ue4ISZUuY
em8zhWQZEVuLkRlIKCGqU5cjOHMgzKKBcv/7ksTpA9lZQSwOZeXLB6emAcy8sU7JkJ+P0+TV
HUXYno7xcmpLoec0Bra0NjOy5G6N1OLo6z7JEzloW5DHhhqlhTywrl0bzarFtDzhQiRQsDg4
qdGH+ozIULApycKE390fQlKrD8OeRS7iPW9xieka6854VMyvWGJSOmCNFu6VryJJAlmg41uI
+v5txY15ggXPsckc3yFADkBCecPSGtgpkQoaanmEG4AEDKQkOQTChsucLI6mg8QdcCCrZHns
jSiAI3UVWaWsRxmn5PtAjYlPPtKVjKBvsvOffhqDXH/denclw36flqOMYePBpKgaS+tMCgfr
DUUlcQ4IjFW6gGix88W4yYLD+iNaTKmJIPGmnTl4qxxIymwiho4S0KFhangO6k5l9Qsd8gD9
CXEy3yAcFYinzJ+X9btXFY8kMfXKmkTTJyVTEzUq2lsKab1j7dedZWPVarDMwVTTEdCf17co
NoT4ThDAMtiMw2qzJ4iMPAtcJiAZmHwwrGCHjgwIBi4GEpcluBQMPdcyLS1FmwXOpnQZdVGs
xLxUKXSu2Nq5sO7/+5LE6QOY9UMuDmXlwyEtpo28MXmGHf1MJhD00p9F2N0txejnL8Ss+jGO
0lxwOLMbpvm6tG4S9Rq9PMSkVRkKckqqM0tyFphXqotqsN1VshImORKow41CrZ1IQVQuaQsf
rImG9To04Ec+mjLEs7xV3SFGSO7amad9NdekiKZTsk8SG2+HEhWhQZKatqdrgXi0B/YZLgOA
l6yrRg2wE7JssycYKHDCRrrQb8gCEGNCVAQEByEZoACAGYKKBwWD0NjAQ8BEMgWRErQ7at48
5+ESWdLTTliyxHRWYkPAyxFerle9pqFyNC+KRW9W+FwK3RVSIMRh5ibJGkv9yTwW7dPWcF4Y
xnIoWsPHpXDkbfV64hySUCVMrQigjRIAmHMj8YXJh0IJ08fyoNi+lRPJkggkh9CN4R8aNhWd
Rqjx1hBJ6Y7uyT1LCg/cbQ4nnbZri6Zx1971r/Q/GdIeCDWdWEf+1QCMbxDles6W4NFmjIIg
wYQIigQgimJigMIAVOyKpjAgADCJFwIAlvjIU0guEkvAhelSklpcTzOAjIoCYGFDXBHn//uS
xOeD2O09LA5h6csXqCXBvDH58OwkkE8SQoQ4JaMF6uCrXSPHqNY0XOI3GsMJtV5yJJmS7UeR
UlOoieFUhcFSqpMw0iiUA4Jbg7E5dio5bLxJYhjQzcunYWCYSTpMrULwdJZiVVipMJCgvunQ
7nRj7nkqT7rJuOGllWY9TysjYdu1HC8cP609+Xge3oaVasJgIqN6gdMKig9KyDThrMTrEy2I
jMB4CwlMTgEECQLCowEDYWlwBgGKAI45QXVTNCDNYSCXLGiCMbJ1fvcpsxFs7O2ZoC2ZpoLr
UAQpirSEjxobWS96dd9zGGRKAolDi5ITRN1irSWIKaRBtYBjbtPLGUYtA4aAialcDRUElscE
AsrTkXhoPhXKlyCcDynPMHQcB4EkzOSKR3kWs4PDhFERw5fIqcWK06JeWzxyA+X1WWaE4kFI
eTcjxNKndeLqCTuMj41Uj+iWqGKNQs2LDDCJGqn39KSIPZgAjAkUxsrO7HjUjAwFDMcBACAC
EPEjEVBmFl6lsLPQnDwEloiWX1RuVsTWWKkWkZLY5Ds1Qvy3Jv/7ksTnA5hJUzAtvZNDTysl
ycwxuN7yuWdP3DEjVrchp0mQuhhz6aXM6ZEt91mxLGsoY+IadQL3jJetdgJ5ND5CXL9WkstE
wrPI14ua9cbIvKRymXr7F4/XEhpCjErYZYILcBUSg4mKXoEnUUfpWIzPTcIxR88iI6XUnClu
/YrOOTWiyh3BFFrtZZ/6mMODg6sBjiCkNHjAysLzJJZNHlUxSEDHBuBoeB5AyWHXocEQQkci
MQCJ3rAjAAKEQFsOWilnEkpWzKKK1wPEFfr4XgOlh1GmSoCmMrYFcF+lTcAGFQLcXpiCQBIG
fRBy9lvgJtFCvqYQ8OS6uSbs60ShB6ns1ry5JcW4tp6JRUvE2P4++suZ7nMXZjVp3Py2yzrb
tlbC+q1pQtONjW1pOpybwXxtqsn+qltItd2BlcH7VET8qr0sySuV49W+l4FoFH7jqFHnrJuH
eknIHRoog6HHN4wAhG5jihlM0m8y8nQQFzHJGPnYOrFWkEpGwOgl0DGPAgAcyu0MRLnIjuA5
AXEYghcNBAUi/sYLlVh/kGLqcASA4Qz/+5LE4oOV+TsyLbE6i00ppYHMvTAwlwp58lhL8nhO
yTo1RNxkFuKM+i6HArWSerwvaEqwma6OlLlicDUjkspBOUuKnQkmuldRj2iIUUki1CQS+r1c
jlOrVlxVZ+ubdlRRmBQq/CqT6pgQ8RH2mttYWR7EUkirhwXNyfL7Ld+r83rAfUj4Zp4L+C5P
4TbqBq8XUa1p31y4IfG6Y1Wh3UbgA1GJTgZBKpikGjQWMEDIxsQjEotSEMbAI4YSlWz9GYiM
TWaQgIUweAsglJi05cMWZKhmmXLUx3cdVHJ67iKal7Fn8hiXDmuQAHgfKIN+F4kA+Bc5PVIi
OqwhOLpyUgFwMh50/AmXxwNB9ZBumIpZIYcEwikYeWyotRFozcOD86NSpGhH4+mA+k54hql6
ItNjlAiLBO97D8lrFJ2/6A4+5aOM+X410DBYLEFSAZHy7IVSqCDFXrWV+3x7aNLGfpUAjB1c
/moP2pzQssDK4qNgaVAheZUPlB0DSGFIJUXqQfMhUBK/Aup4zCJOIvmHRZ67aKLBEUn3deNo
ltpJXKcNzJVg//uSxOeD2N1PLi5l5YsRqqXBzLE73C2HUYxhE5HiViYIeOoGESot68uIJIzh
cUkLEaaQO4ucWMqKOb4xGR0TiASR9c7z+QuDCLanlopjBOdDTwWFKeLGrHrEdkN8hD9tgqVo
TDemlC7a9RITlM1R2pmaqahuC/Ck0povxLWr9vYcSQ3uXdryery8zBAhRYNo94WSpLmHOdAU
ZnNIF/mgBmW3EuwBRESGrEy+nkJkRZjx4BDgUCjGydmSi7vOQwRwIoy+NjqCMI8+ToHqUxcT
NTpmJwbiVOcilCZhKDzTh9sShUhW3ViYJASB/QBxIXBAbD2SkpRJweBIW/JC0dTfEZhQsnLq
5lalXmg1kgl2UNnelU5Eg8WKx1ugoSsrnGnZieXrF41EQlB6P4HnTfS6FJXWl+Sq+zQzLglx
x3OCQShDBIiJjs7ORINFDhGMW+QzChnEvPFmX5r+rkM5P+7EPFkxkJDzlnOwqPnwMeqMxXOg
1N5RM4TNCRYYEGDUgCEYNExCQaSQAwMGC5B80ulkjIxVafaiIaJOMhdIgjZeUSZI+//7ksTo
A5ixTy4t4emLJS5mTaeyWHxJ0UPAB9EmNMdaHIolyHJ8wCXjiN8XEuIsIwUKJkZZzEYgoMmq
FoiAoUiwQjyZE7RDGwsR4tbudhdKikBGtrEyJ98fV1Y4JSTClZ1Np20sy26q8Z0IgKVlZFAr
2dTqyBaNvK3MoXGGwTytuH1GvMjHGkk38z+28ef4xmTwdgXJtahUQWiho5wmWQmZEDh31mMG
AHguIYF5ydASABMGPWYpIGnLVswVRSWVWroA1vF32CIgJw6RTBwBmG4PQXM5jMLauVwXwvA9
SJSyWUTMPWe6jSJXH6QUzVkYZ3m6RZfn7EaxbYBxBhjt2VRdIKiS5fU/VkUU51HupVdEVism
QyZiP5kXB4JVgy1MRw5UinfH5CV8Z5CT0Z6qWRtkcoSNrI1vvFjtVoT1/eBeu8vX0Z/DtAvN
aPDrbUsTELW8araFPFisWLxS/coAANMPpI6CNzqhCUCYfqcEQbUeiIax+IiwJJmCMmmBp4sA
KC5QHT0LUDgcYAosAswGYtw6i2hIjtJsUg9I7VeSpiUh8GP/+5LE5wOYeUkuDmnhyxKqZYXM
vHikEqOA1CdLhiKR4ZxwxkoYzIyIaolUoYRyraMdu36RVJ1GA3sJNnZovFYjplSuUTlxdoiJ
WkVzRTqFGhpSDeZ6uVYsTKpCoCKOBri7bnJX5Y6KfT+JGiYZ8Z7fI93l7aej/UPUbaHKyy5Z
nCMf88JXsDXf71mNEng4ljQwCpJM45/QASOctpRiwEmKhUYmE5i0nn8xusOvXyZJgFYXMHRH
iEh48udh6CNiSNxLWED+FAIAaRkEgNAWcu4KtaHOB8VpN2QhDGO80CEJBUmOGmh43C9GmUho
nYLI2KQ8U48UiJZkNLAchzoQXJMRD9O06F6xypcqjhUSvYfHdJtZswqdzxtSq5SWbz1OuA4s
Krc3zIqUKneumJGoU3PFe1KtfcFVCbHS6VkBgvti3F05Q2GG5xH0k1I+6RKQ397ajwJImCZx
1OSkor3qVTBQ3NaQsxQNTGoQM5HQRBkSaY8MDHwAMUAYFB0FA8LAwvSGC4eEpgYAoNGKZI5A
MBpqgDutnV02NFZVdZKwqmjN1YnZ//uSxOkDmN1XME5p4cMZKSWBzDypYy9L+uA6zSXJoIs4
aiVtrMWZcvZeqsq7nraE/0MtbcKglLTHZrw9C2oupDm2UvlAkpeiZc5mEkauQGBkGWhUog4m
AMFFyZRCQkqnJKGQTiiOJ2NpDJKYEQ+JycqwsMRIwwjCDTRCTAksZMkr2sZD+waLLtqMTbT2
8td2Scs4fvWORHpgZrHkiEcvFpk4BmIUIJJBFNGYHIgsgVRB5QnIEHI3pfJmio62x5VkDrAS
IQwoJzqVY3CUCekiGMSMhxLApmg6F0xByKYn5pDmHyXwyDxUaECyGCW4/VAox+ioLaI8TEu5
LFUe7OynSThpT6GoYvGWtE/Rx4rgsCHHghCIWTsyj3KAdb55DzM2J5OptRIaxOFiYYbGlvPf
SkiMCycCHPTsc3qaYayvKNNH0u4S4XaohXpCpJHu+bX3rDiUpHT7eCCjpbHqxvlVMP5jc3Qw
yiBIqZebGGL5nBcaOVH0yIYw/E8aguiNmmOATJGwKuowgTPCbECC1GgKIXtgMFMUB/DFFAWI
nBkl1JYX5P/7ksTog9jdSS4OYS/LGaelgcy8qXCMsg0jkPo8DmEigG+klAn2QyjvQg0cECG6
bjah6EJlAIJxcOOGMqFk7DeJGYiFH62rSbXo63GTO206kgmkcjWpnWUSrEcsq9qeP+kG1ujM
67cFc5lwiTR29+3Ia1tWoCvbn8bsM1omYF5Ii86pdjw/1mBNvFs4pWSpXcRRS6p39EYpMh1O
vGJ02YyWJi9GhYCB+g1QADhsQ16BUgEiiIZD1dJUGQyfpwxISCjQFiUYxEAY6eFcJqQElJDG
ZOAGioPkkZbUWQpCzeckMJy4lyQJeRNTBJ0TVgVBblUei4UStP8zC6SoUZSoYB8m4kU27J4e
5upQ+TkQo300rm5tVhWkFUGVMSNRrzAtnElpI6sdH4qmOPFQxXvn0k0NCVCu1HBakOkjQ5tp
pxy5xcPUo2dpjPoUzKsqljs5RXuIm389d79ZoW5tzrRWIyowERTL5aMhpAzpGDGRJEBmMLFs
w2FAUDhIvAch1OXaQHGIYuZrqZgeko0g6BFBl0NR1SDKoFLVfrnS/FLQhArYfTH/+5LE6AOY
eUMwDeXnSyWqZYXMvKkOMNaCcYkEBcieJgc0NEC+E1EmLqlzvT1T9OImJ3LCbQRNbsK8T80I
qGpQcBPz3RLe+Xmwv5wQl2nkRdNrp+jmInjMznIcsNvjuK/Hu4OTgvJpPtJ0MMFTwtv1ecc0
ZwgN8WO+21Pm+Rtkmw/nw9+Zcbx22W9cyZr6098/0haLtO4y1+jBwnOvB840VTMYDKCQYdLB
gMOFAfKAQYIBIsFlN0qU6ZSykFBCNNLWkigjnIF5pMuJJljo8JfIomYLuMEnCEknC9cU4KxK
LSGIxkSp7Tl0TKQUo5FcSAnBd3YdZwpUnigOBUII/IMV8uUG0R1MhyJochRwGsjadNBpUpKh
8qM8EshKaJ4a7wrNl5r0AOVgyEh8cDI1JaRfE6dJio2crTArq2X0qardY3LrkJOuXysg96jr
R//Rf0e6x2bkOdmPCiobud52BhsOGDQ3eiw4amSjQYUBhikhmGQoYDFIWLJn7HVSdIbsihCP
AGTNJIGCFuxogmjCHAuK9/loB0YYDizByPD4G+cZCi5F//uSxOeD2LlRLg5h6UsQKmWBx7Ko
WW9MgTh3mwhrmazYTciVEI6aRaI5rUkEnBYzoOksnI6UUpTLOBmcRPDtQhWtUR0oTuOyAx1Q
9XKhvRTMyohDC2LTC0yGGebE4VY2dCFtNaP1XMblBXSae0kRiSTrY6uwVYV5Gt+ocJn6pZ2e
ijh7vJ4OLafRe57zC+NR4GdwtXxKZcXjdzhGDrBo96FVQDS5qAgQpwNHEkmvlpjAQNiilzTV
HEPFowRF2tohTRgkGFPGKcS8A3D4HoPEoQgY9Yi6CMQ7z1NAYypVROFC4uKkVJ6MyegqpNl0
RENjQpURVlQHElkiP1icUcfitX53zOk1bCSxfUQbp0q9Fq+Axnkoks/SCHPh9oQwH0KQGUjg
GQDDxKFHolgwmgD0wQE9piiRk0hO2qUdJH3LqPQEYhDRgBj5oo9tsaSg28yugRRghajjDkGG
Kf6aAIxkSNkvjCzcySDCwMVQ0GnxjwSZWbmQApk5aOnhngIYiB6AQIBQsZCgKROmFuisOupD
RLdQoKnQ3Rwxbkm8qvCleNwZYv/7kMTpA5lZUS4OZelDAyrlxbemOr9nyfDpsCdWORJc7/Ty
+KJ54FZxGFtryd109Sh333emM2JZADayp9qebfbDJ2odjkOxnrB6anea7KYBgWJXrMzeoZuB
4vedirQ2pfagOLyuUZROnm+0NPL4TZm5djLabncNyytG53LlJWvYz9PQy/KYvV8c5fXytV72
Vm/lz8N8voE6HVpQAAOdG2RwsDn8RMYyPxlZsA6AmPDcBCOOFExSSjAIUIAYYhISegYGSILm
IBUYOAB1hjhJeFJseHdkkGRgMcUO1LwFwVYmYNSLwA5kREHECIXXmLXmgkudBOy9Gw30UyF6
URbgLGFWdKomSEJSmySxQyY5KY6GSAVOlHtUDWAKkyMMMY4BmAjNujO3QTSYFA4WJMkFl6Xb
fN1UyECRCY0cS/EY4FIXlTKGKJIol/1l0rSmVLFVrVMytN5iDCmZl7lNElkMlJysVITTZ6lW
0J8oXRyaGIKfBor/Msddd67JE7cna2hCJJKqShlbFGHRmbfpxHXa3+3bl78YbvZW82JzFDC7
d+/Vtf/7ksTpABl9Sy41vAAEnjIkRzmQAm+f1AenrDEZjNqJS+Wf8x9i3TxiKUmdPXose2AS
FF//w7UACY0WbMyMB83VI0wUKA4Uiw0LJARAUAgwBQQGSAKGcwqGYRygYB0VzFcezAsCDC8X
ggYxpIuOf5A0gDqgoInsW0UTEYCFiZimpkEhARaBdLdiUEzBViAkaGk5h4s2jwYkvFq7STCD
EIL+onr2Rbp08DDCJizFMCwaY6Etlw0Ivp0lopOqNtRd1OdFx1FLmGoBUqlpMzfJ3WHv8piq
vTPs8ywbKFLE5ldL1Xyja4z4S1cj80T7P2/NK/MOLErX1SSZUaxJAyx9IqwRNNWhvHShLnw4
u9ssqgWROBNxmLPs6kAQ87MMQ1SxCg7AMoeGtJYxJJTchmzMbvXccvzy/9f/wxdppBhU5jvm
ev592lorV+WocgAAE9H7TlwlNwrI22XDTQnN3IcxoTgMFDIYLMbAAyCDTMgsBIxCg3a8Cggj
cQAwUONMcuYJTlGJGKAGkE4JIIUBQlriQZMMCxi8CA4MtA0pglAYZJowwlT/+5LEtYAiaYcq
OdyABFWxJIc5kAGI1GIMvAZMHEUYAgMQpsNAwiXSyFgizYXHMA0CDCAAO1CDy3QiGGhlpNVS
LaGSipkPSWuJQxUF8mZytKlfDg0i9Va1sq0OjErC6mBv40NZD1SF0GQSpYrtl0SEF2myJhs6
SRf1xZc/LHXip3GYzIGwwKw+H46uR4GwSNoUGtWcdkbFY648momvQ25L0RZ/aO3bpLDpx2Oy
K3I34s3oftz0pk1LnQVd3scf7/ySCcJdrLLn////25RcqWLFlvq6AIAkBpkuNLYqsppmRg5j
YUKhJhIWY0GGMBhIGmOhJd9OokBE6YABPicBBAbg0QA2LGWAuj1yT6jDrciBnGoSlMMjDmbR
fyMmO5IS9uprPDTwrGQ/oJgt6cUDizuZzRniquppTTUkVcqxAsTKonNecG93l7HYVew3js7l
SPJNaV8yszyR/aBB7hT6ZIr+Kyv82hMLfAtH2/3izVLq2GCuoM+I9pZHjySkLFoFf7z6FQEe
PAdMNFzXaIDDhkjoYOQFgBBo43AWN2RgkOMJABoC//uSxGeDlkFHMj23gArFqaaKtvAAYo2O
ilrLRIylJugh9I0vqED9O5Dzecz1Ui7bDeYVeesBTHWxKE02FSsJrM51oqIwR9sLksPmtDpn
BTIt6xvle0yMbYr5WWLVqlfxVdAeuFJo75/FnrE18uCsUulfHh5hTsEzqSaDDg3iK5xVsS7W
zt0OfL9tpnTx7FcYl/47A3MjK9i0ht2awrYnw36w/h7B8EnDchUAAAABY3sjgS+TYJ4N0okc
qZvUDGWgmYoBwRSw4zmSX8YoLQUBRh4IJsExKMCLcwcPy0wFSETQWCk90hOAAWjUl1VUrVkM
6bIAI6LMODUoAw9DcuCgDRjg1J8voIxYqGUix8vrK5C7C7k1HHdEvul+uIQgAABdVBlarbuC
1+mRsVwuBj8UQUdxc6Y5bRQJ4a4CFMpTLWGT8oY012CU539gFXiylklroDEh7gCAOqkyuAXc
wmV4L6hDx13UoJdAkVmFIsVU+xRu6jENSBS9ncGQw78rWFlL2w7QQRE3hguxFc6SYmqvH0fm
HoowuYeJ4aetI5bLq0tr7v/7ksR8ACKplSZZzQAKw6pmB7TwApcZqh/D98rV6Hdix/da3/5/
cfmfnJdRVfo95XsqQCMQKNAUERI4UcAnTHOzjGTBAQALMqcMKCAIQQhBUAq9Q9Ccv8lzkEmO
BH2PgvKvUxXrpmUyGlQT5SnWrT8ooWWMlGNVF8LejMv299lCH8q7Y1Wfk72AjEupTzYGMuyG
vbMkJWHG+RSXZ0N+YrUyNcSBLNHZVY7eRUSnO4sDPl3C2pdTq22WuFNl+wuVJqUiQou40tHz
2G6YotPetsOU077Lxyew3kKXW3+rT236T16FqgCAh0ZnegQSNFLjCQUDLaYKHgGMDBxFPswo
eMOCmeOcXIAQhDzP1tJaqnLGfCgHwPo0yXnoTMsSuOmISswx2IYdB2DpaJy+EejjDXatO0uh
+F8MKCXU40+xMr6d6wMiewTWOhNAOg2Iw0cHDUBsTEAkJmXxWCgoPGzcyEhE6y5GmSYDG1Rw
Skg4pSMNqwXRTfTJx7B/dgmjSaRo17lHaKIJqQxm1KckMjoK3Syb/+AVKJJAIPTOKcAgw4NA
kID/+5LEXwOV1TcwLb0xSsSnZgG8MThwAFx9AECTGlB1UDhP8x3Nmasw6BmyAJmT5oClMoPo
H6YI7rc3huSF14jD1AwaQvy2KENcA8VGwWCIwuZHg4D0bGSNMKgbEEPwTBiKT43QCwmXCS+a
Fc+LsCwwRPEuhIfTLdLY9IialQ0MvlonPOFRMS0pMElKdO6OkTcA4sn/dp8rQ3VT1+dqyshZ
Xr71O06dyZykEEceXj3DwKDgwsOxtK4AkPDATxNQVFBtx8BGRPg0EZgQZMOBQRihynTFGVF+
wKBQmIppht6kautwlKHROATImivJUfpgj1i3AmiwmUzn6Zg9CsTom+yvHrQZkoFvZy4QZzwR
p6pNzNd2zL6ZY6FgtkEQRQPCdYIGuHpOhOxDODXhmVhJLyrFiAVVR1iGX2jrjm/nR60fHCAf
mZ4SGJOyasUJ2ynZfdcca0ZVJ0bPMs7eFpMWkfnS6JIpPMTpLRyhTRS1b1f/oGBQCPkrTJzs
xkIMBCSqUgo8S0BQMAQIHAzYFll0WQrVygwGCqB9BzKJOk5VNd4ycRkI//uSxHWDlw07Li09
kwqyqeZKtvAAcki8QyQvD6bHxknKyv3qEIcl4SPT+lOql3D6leSVQpFJJ9lWxldLAfxobNAi
vnDCtY3W0KxF1AcWqJqIwscjPEdxMsUSC4TLMaBFcn0eeK1vb3kbXsCPW+4do2XGt6xMUxPW
8By07tEYnkStnGakWFu+X08GgwCoSukAAE0qNDgrKHwcTIk45ujSTDNEHcw4LzIRPKg+OVl0
0+KxkTjgGMGCAwCJDVxuMsg0EElAhhsAgo0RDerKgYVFAwAAQGB0aQ/MAprqLTsoMkpuYKZQ
dZgYpKe7SgQOBggw1QRD5BGwYEhF3QKQWUS6OEoDAjV6r14F3Yknek66iSiKpb1ChzmtVx4c
eML/AZRNUZGl7AXAS2bC1Ndryv69L5s+WvaGiVNaZabd1RAoB3V2wUwJQZR2zx0mIx555x/Y
zM0kjYc+693ZSHVjaA+7X529OvXDtikm5T2gcp430kLrPXAMUg+VSmDFLIbhxlbSGdRGRwXC
p6mtZWcP/fP/f/Scy5+//uf/3/ik3D8vnK9uxv/7ksSJgCK5kyI5zIACvacmA7bwAHhawMHD
DrWUMFTKw0UGgqTGGBYkEpaAkCIgIQC4YIsqedYYtSlwEpQhCidkJULScpBSxE7gltZDmlGC
ejedbqOqC6qMyzUXCuJapDfQ9PHuT1DVYkl9YYlWok08ZEqXxzUq4USufSIFKqRRv2JWMrxW
XYVJhjcWVuU7grKd9BZYkO+WCtk/mZ81uUDEOjArLu3jUxRYapzAmkgPHKaHE1C1ilMy7p90
3ia808SFwfS8mnfVICJ5855lIUGJUlUUBk5iSK1wh+QgU4QYKMgKQClwxIHShUGie7rViVrs
XyuHwcBYDhaGNzL41saVPJTmQyG0ylWX5C1U4knT6JuRqI0HQVTxX0SD5OMqcjOwuA4eCjir
JjB9NmUlBIEGjTJYRGSIqD86SQKgmoquVEESp8vEGycKFkCrYiJjiBGbE7hqWICtHCTYmjy9
FbaQrKTqzEE5ptW8mgJG0m5it62HFCUiaKIERjVoxZ6ZUI7IMEFQAY8SBBqKiqbvPO1oMEmk
MNRDtOQeRKUONtODnVr/+5LEbQPVRTcuDT0xSq6nZgGnpfHFsgRXJUaJvFOMk/USUqbJUXxU
NyXfHEhZ4qVuU4/D7mZyVta7SCtUjmyDZREEgwGrDxLDBOBZCSNEIYaHSwjQDLSZOiNsQB9A
dcqkFF2XGUNCYXFJK0TuPrHmC0kCFo7FkpEbIsiiOKtofWxhWwR0peqWnwBZUClnOebtMBFA
4YNTMw7MWBExyGzDoBC4hMBhMwiBV0l8zAYPSKXsyFhgFAKPYsBCQj6nUpLDiPogxbSgeLxf
j1YlKP4uyePA5TlmPZUIWOBWFxydCscznUpxK89nCjc7cpjwfOCRWFwlWxdqylF0xKyReUyd
RjZOxr6xXLArHzY909cl5tlhwMxG2rvEZ3HZ9MTyJZlaIb6fSzEhw220kmW28d7iBi9pmSNq
Jm24m9TJDxxkwuZHXgAAAEUm3TubdJhrkumfxseE9xzgfGOTWCQ6auGwk0DABMMag4iFyX5l
kkGFRSgcWcK1wQkBYjFfGlwEegQV8sw2o2/CisRQsMclWIYKXIYZS4TBPEzQCUrABgCqCocU
//uSxIiAFj01LhXHgARVMiSLOZABHL/UCYkqRHlEIqAFVISLBzaX4sGPGEQahimDnl1oEjb6
iAVMQIDQWvoKAwZUD1iRkffZxIGfCKNShdM0tQxZMHNLLuNcjzoq/aqpeyBpMAtZae/0AQLG
XJZI1t2nCeZeLxt46644ekyREtchZ7OI7Q83dqam7OOVAx9UMkdV530jUJdeennBYPAD9S1/
3lfuko5mArtJS2ML+f9/m/9+JDLpbKb1Nrdu1z96de7NQ5Wx7qkvddWqAIwUOM1nD5AcwwJA
gYJCKmyO6vlLFLUyxGAhUFbm8rav4KeuRXjYTqiay7uI/DkH8dBcSBl5LgSwp6nshyRHgwqV
KJphP2Keq7URB2ZojF/XaiiKsvl0JMc1XSYUs6tTp3MCfljvrxmJsgOMnfQpUKcIihhRmVzZ
mBvbZWxDWVQNrVRkc4WmV/V6qe4L8aJj3eZnYst0arx59XjSTuFYG2XFJ7atCmmkDhrd8IwG
YYjmlxh5xuCBYGiSuAUlCMOAwO2VKpnRa6GURljN2W0tGNo8sKc1/v/7ksRrA9W9OzA9t4AK
q6hmAbYbWodlzTXdaiwOpLHgeN8Y+yt5V7xlwmITEUcd921euBX+hiERxo7TxaOo4FlpdcHS
iblhlMtMi5EVE5cMbLUJeqPjE5THJ2TolyonCscLoCAZKTofbl4unFV6FHGzkClh2GFkyYCJ
pMqaMW5so6bEUX7IuAeXCWk1W7xK+TAY8oBCr7uuAIwgfMqoTzhoyMiKosQgw0WIMXXYIDF1
AURtGSwDLFrvS0KJvmiLUh6H3zeqKMcWeOwiieIC9GWAnDwCEJ62FZoMCwC64D5LKAjEMOzg
2Gw/F0nEMIS0kEQuxEo1XLiLGsMjshxyIpgJS6I7OTM00WQGbZZOEGBGaGJOLiI9YJ+sIlsF
fbOlDxpZylmFylM8cL3V9n1q5p3+gO8THKa2r0WPp3peSv1tf39h3visz36AUKHKZZ9gCBiU
eL4g1Qs2YCKILiQAzEvkrM6CciObsFQLWUxSnGEcTBtshb4SdQ7U7WShIODiToghP0udKkPl
vYVwiB/Hceqkc2BNszCmlAk0IR+fEV6oVyj/+5LEhQPWEVcwLeGF0rSo5gK28AKOrCHKRVOc
R+7YoDzcKO13kS8rEzyNquYoMrCrYMRhT0aFuxywGyNZ63f3pBkpO+fYk87ZGmw3beWiwIUT
MTdFc6wyQJnCz+FCtNR1WkdouCIYr20AAU8DpzCg9OYDAxiRDOPYM9GQwSIDEQRMOg0GDozU
VAKEjC40DgADQUYHARi4BGGAOGGCUZuCCSA9YCRDhCBUgOnITDKACyifwRiCgRCQZZZhEmEk
FTmcssbkFTxQdlcaQxIpepnEILCGANYQRpooSwoHApQMTEpTwNkX3V0yeNM1fBUzxu+wVZiP
adDgLAxFrKHjPHWYl7ltMiLhMtYLUTnU1U/NKsUbQ3lq12hRNDdNZhshQRPZZhmDNs5l0POE
3F11/pmoC1fxNsa15CjQ7jHEDXBelubOWv0czHlMq8Wi2MRdn6VwVj2qCPuPJpHWfyrCX6o6
8Yxzw3v9f3Ut1rWVbLvf///37imduWXae90cHgAAAAQmP8IhcOTQBkjMsPjVM+DEoPxkOFJg
4MTAUFzFcQhUHzAg//uSxJyAIl2NIjnMgAxWsqTLO5AAATB8LgML4cJcBl3BWQHbmAsl8Zpw
t0h3QkpyFyWaBxpghFroJEIpekqBpxhQJVimDNEhgwAZLS8Z6jW8qtyjcpbZMVEEcCHgktRZ
ZrirI44rSIDfJWwKggIpG1gjXm3Z7BDuSOs8Dvo8Mji71OHOL1aQ/ilqActWseKvIzkOEcdj
KtcArDMhpZRBacz+tomIvpCTTt66axlpvIiksZ37iVtGo+3Ru7JIabLDlmjfyR7ltaKReEtW
eJwXThiSz8yrY2zgQXIYCtw3BM9IXndKhklSNY0Wrev/D5XcjNJzV67vv///ajMSzuW71nHm
rWS1NcNDNCB5MlUvMqRZN4S6MHwsLKVDF4MDD0DDJgNDJkeTEAQTGUMDCYGjAsFzEMGQECQV
ZGiFGiBmJHkyJpR2kpnRJv5cmM2AICAYFMuRCwgyxE0QIxT4IjGBLGSAiAqCCIAAAIAl+iGY
UGJEgsDW0FgI8KEYYqAE1GFjwRajdFJveYEUkM4JWCMYPe1UaH7mpQKpV2Zg5IOgRYHKWv/7
ksROgCR9hRoZ3QALwCkkxzmQAnvuCRxZogBg0GpiAQS64NZczyC01Yi/8gZm46CkIk4GAM0D
AKAdw3/ZYy59ZA47WWnM+UqcVgLWYGxpVB2wLEeBhj2OCnjF0BReqmg1tVbozTz8SnZrC3S3
62d5rb/2mDvA/ClkGv3DdOw2ilkat54/jlWtfjy9huZypq27NX+6/8sOZzlz9gCQHIjGZvLR
t2AGOywYIBBnAdPiZOA5igEmJhEIhWYCC5gsHITAMBQwNg4OgQGCEkwZQoINbmumkyl6DVjP
HC4pfNtkLnVApJVTbuBgU0RUJlb+K2lYM010dAbsr9I8RgJ9v+kKsLJGDF8FYmLqXKiYagJJ
gVdLnXUz2XUcYl74KWqWRlw6VhDWkvWJtIZK3Vyoq+EJgJ5I3AbUYegWqvOrGkUlLUanhBIB
AOxhga/JuOxnd+ZntYTVWV1ZbHo3Lp+tNLeSGX8katFprMpBIqaambH2sssufJKe7ellJa7j
du2sqX6UMhkIYHtVywwU1DN7SEUCm5xC7KYgaEOoKTLk51kzI8X/+5LECwAZAV8sGawAAscU
m/efgAETVBxomAsNgVDu/LO1hasMhc6XyzWFJrqJOzALuvJK2dKTUtn5xaE1VltZnTLXQ+eg
ZhjSaCUSmxGseP+70ZblSS5uEYikF1qkq+tlv+yt2akcp4rHKLdDPWKlbXd75qv2mmM6Kr2r
jleo7FjKtY/f75lvmtZVt5fVx3r+zmGVyxlYw1hvmW/y3+X///3///////sCAIBgQDAwIDxa
eLT3/+gQDAwIChwEChzy08Wni08WAASSQjkZAACJIKXFgJUPUliegAEmwcIKksKKJ00iugqY
fR5QdZLNP9PREBBccGDMgy1ryxJyot2q7LOV2sRd2o4S7ndsylrLOXFlCmSK0JfZ3qdwWuyZ
wlTRV9nenqtLytGuVqbtWl5WpuBT7///////8U3I74poU7wXIZLiaFMPBchgViKCkRwLkMCs
RQUiOBUQwKxNCkR0XIYFdNCkR0XIYFdNCkR0XIYFdNCkR0VgJkxBTUUzLjkzqqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//uSxBSDwAABpAAAAAAAADSAAAAAqqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqg==</binary></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX128">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">3</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX129">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX130">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX131">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX132">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX133">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX134">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX135">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX136">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX137">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX138">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX139">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX140">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX141">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX142">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX143">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX144">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX145">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX146">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX147">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX148">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX149">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX150">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX151">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX152">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX153">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX154">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX155">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX156">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX157">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX158">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX159">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX160">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX161">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX162">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX163">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX164">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX165">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX166">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX167">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX168">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX169">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX170">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX171">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX172">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX173">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX174">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX175">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX176">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX177">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX178">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX179">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX180">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX181">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX182">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX183">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX184">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX185">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX186">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\unsheath.wav</url></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX187">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX188">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\unsheath.wav</url></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX189">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">RBX112</Ref>
						<Ref name="Part1">RBX110</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX190">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2</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">Weld</string>
						<Ref name="Part0">RBX112</Ref>
						<Ref name="Part1">RBX101</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX191">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX112</Ref>
						<Ref name="Part1">RBX104</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX192">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>0.999996603</R02>
							<R10>0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>-0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX112</Ref>
						<Ref name="Part1">RBX106</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX193">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>-0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>-0.999996603</R02>
							<R10>-0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX112</Ref>
						<Ref name="Part1">RBX108</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
		</Item>
		<Item class="Tool" referent="RBX194">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">2</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<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">LightSaber(Green)</string>
				<Content name="TextureId"><null></null></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Script" referent="RBX195">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Sword Script</string>
					<string name="Source">-------- OMG HAX

r = game:service(&quot;RunService&quot;)


local damage = 40


local slash_damage = 34

sword = script.Parent.Handle
Tool = script.Parent


local SlashSound = Instance.new(&quot;Sound&quot;)
SlashSound.SoundId = &quot;rbxasset://sounds\\swordslash.wav&quot;
SlashSound.Parent = sword
SlashSound.Volume = .7

local UnsheathSound = Instance.new(&quot;Sound&quot;)
UnsheathSound.SoundId = &quot;rbxasset://sounds\\unsheath.wav&quot;
UnsheathSound.Parent = sword
UnsheathSound.Volume = 1



function blow(hit)
	local humanoid = hit.Parent:findFirstChild(&quot;Humanoid&quot;)
	local vCharacter = Tool.Parent
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
	local hum = vCharacter:findFirstChild(&quot;Humanoid&quot;) -- non-nil if tool held by a character
	if humanoid~=nil and humanoid ~= hum and hum ~= nil then
		print(&quot;SWORD HIT&quot;)
		tagHumanoid(humanoid, vPlayer)
		humanoid:TakeDamage(damage)
		wait(1)
		untagHumanoid(humanoid)
	end
end


function tagHumanoid(humanoid, player)
	local creator_tag = Instance.new(&quot;ObjectValue&quot;)
	creator_tag.Value = player
	creator_tag.Name = &quot;creator&quot;
	creator_tag.Parent = humanoid
end

function untagHumanoid(humanoid)
	if humanoid ~= nil then
		local tag = humanoid:findFirstChild(&quot;creator&quot;)
		if tag ~= nil then
			tag.Parent = nil
		end
	end
end


function attack()
	damage = slash_damage
	SlashSound:play()
	local anim = Instance.new(&quot;StringValue&quot;)
	anim.Name = &quot;toolanim&quot;
	anim.Value = &quot;Slash&quot;
	anim.Parent = Tool
end


function swordUp()
	Tool.GripForward = Vector3.new(-1.1,0,0)
	Tool.GripRight = Vector3.new(0,1,0)
	Tool.GripUp = Vector3.new(0,0,1)
end

function swordOut()
	Tool.GripForward = Vector3.new(0,0,1)
	Tool.GripRight = Vector3.new(0,-1,0)
	Tool.GripUp = Vector3.new(-1,0,0)
end

function swordAcross()
	-- parry
end


Tool.Enabled = true
local last_attack = 0
function onActivated()

	if not Tool.Enabled then
		return
	end

	Tool.Enabled = false

	local character = Tool.Parent;
	local humanoid = character.Humanoid
	if humanoid == nil then
		print(&quot;Humanoid not found&quot;)
		return 
	end

	t = r.Stepped:wait()
	attack()
	last_attack = t

	--wait(.5)

	Tool.Enabled = true
end


function onEquipped()
	UnsheathSound:play()
end


script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)


connection = sword.Touched:connect(blow)


</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX196">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">WeldScript</string>
					<string name="Source">function Weldnow()
	local w1 = Instance.new(&quot;Weld&quot;)
	w1.Parent = script.Parent.Handle
	w1.Part0 = w1.Parent
	w1.Part1 = script.Parent.Handle2
	w1.C1 = CFrame.new(0, -.45, 0)
		
	local w2 = Instance.new(&quot;Weld&quot;)
	w2.Parent = script.Parent.Handle
	w2.Part0 = w1.Parent
	w2.Part1 = script.Parent.Handle3
	w2.C1 = CFrame.fromEulerAnglesXYZ(0, -4.715, 0) * CFrame.new(0, -2, 0)

	local w3 = Instance.new(&quot;Weld&quot;)
	w3.Parent = script.Parent.Handle
	w3.Part0 = w1.Parent
	w3.Part1 = script.Parent.Handle4
	w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 9.43) * CFrame.new(0, .45, 0)
end

script.Parent.Equipped:connect(Weldnow)
script.Parent.Unequipped:connect(Weldnow)

do
	local w1 = Instance.new(&quot;Weld&quot;)
	w1.Parent = script.Parent.Handle
	w1.Part0 = w1.Parent
	w1.Part1 = script.Parent.Handle2
	w1.C1 = CFrame.new(0, -.45, 0)
		
	local w2 = Instance.new(&quot;Weld&quot;)
	w2.Parent = script.Parent.Handle
	w2.Part0 = w1.Parent
	w2.Part1 = script.Parent.Handle3
	w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, -2, 0)

	local w3 = Instance.new(&quot;Weld&quot;)
	w3.Parent = script.Parent.Handle
	w3.Part0 = w1.Parent
	w3.Part1 = script.Parent.Handle4
	w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 9.43) * CFrame.new(0, .55, 0)

	local w4 = Instance.new(&quot;Weld&quot;)
	w4.Parent = script.Parent.Handle
	w4.Part0 = w1.Parent
	w4.Part1 = script.Parent.Handle5
	w4.C1 = CFrame.fromEulerAnglesXYZ(-4.715, -4.715, 0) * CFrame.new(.4, -.3, 0)

	local w5 = Instance.new(&quot;Weld&quot;)
	w5.Parent = script.Parent.Handle
	w5.Part0 = w1.Parent
	w5.Part1 = script.Parent.Handle6
	w5.C1 = CFrame.fromEulerAnglesXYZ(-4.715, 4.715, 0) * CFrame.new(-.4, -.3, 0)
end
</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="LocalScript" referent="RBX197">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">LocalScript</string>
					<string name="Source">local Tool = script.Parent;

enabled = true
function onButton1Down(mouse)
	if not enabled then
		return
	end

	enabled = false
	mouse.Icon = &quot;rbxasset://textures\\GunWaitCursor.png&quot;

	wait(.5)
	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	enabled = true

end

function onEquippedLocal(mouse)

	if mouse == nil then
		print(&quot;Mouse not found&quot;)
		return 
	end

	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)

	local g = script.Parent:GetChildren()
	for i=1, #g do
		if g[i].className == &quot;Part&quot; then
			g[i].CanCollide = false
		end
	end
end


Tool.Equipped:connect(onEquippedLocal)

function onUnequippedLocal(mouse)
	local g = script.Parent:GetChildren()
	for i=1, #g do
		if g[i].className == &quot;Part&quot; then
			g[i].CanCollide = true
		end
	end
end

Tool.Unequipped:connect(onUnequippedLocal)</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Part" referent="RBX198">
				<Properties>
					<bool name="Anchored">false</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>10.178133</X>
						<Y>0.892866015</Y>
						<Z>32.8235893</Z>
						<R00>0.10327217</R00>
						<R01>0.994653106</R01>
						<R02>-5.81713357e-006</R02>
						<R10>-0.000170290165</R10>
						<R11>2.35728858e-005</R11>
						<R12>0.99999994</R12>
						<R20>0.994653106</R20>
						<R21>-0.10327214</R21>
						<R22>0.000171842519</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">0</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">false</bool>
					<string name="Name">Handle3</string>
					<float name="Reflectance">0.25</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.25</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>1</X>
						<Y>5</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX199">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.400000006</X>
							<Y>1</Y>
							<Z>0.400000006</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Script" referent="RBX200">
					<Properties>
						<bool name="Disabled">false</bool>
						<Content name="LinkedSource"><null></null></Content>
						<string name="Name">Script</string>
						<string name="Source">--By Wirodeu, for socom1880

function onTouch(hit)
	if hit.Parent:findFirstChild(&quot;Humanoid&quot;) ~= nil then --Check if whatever touched the lava is a player
		hit.Parent:BreakJoints() --Remove snaps of player so he falls apart and dies! :)
	end
end

script.Parent.Touched:connect(onTouch)</string>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX201">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>7.6417675</X>
						<Y>0.892805874</Y>
						<Z>33.0869331</Z>
						<R00>-0.0980763659</R00>
						<R01>-0.995178878</R01>
						<R02>-5.81713357e-006</R02>
						<R10>0.000170410945</R10>
						<R11>-2.26832544e-005</R11>
						<R12>0.99999994</R12>
						<R20>-0.995178878</R20>
						<R21>0.0980763361</R21>
						<R22>0.000171842519</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">false</bool>
					<string name="Name">Handle4</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX202">
					<Properties>
						<Content name="MeshId"><url>http://www.roblox.com/asset/?id=1778999</url></Content>
						<token name="MeshType">5</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.400000006</X>
							<Y>0.200000003</Y>
							<Z>0.400000006</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX203">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>8.44591331</X>
						<Y>0.89289403</Y>
						<Z>32.6012878</Z>
						<R00>0.000263843976</R00>
						<R01>0.10586869</R01>
						<R02>0.994380057</R02>
						<R10>0.999996126</R10>
						<R11>-0.00278138765</R11>
						<R12>3.08356648e-005</R12>
						<R20>0.00276904949</R20>
						<R21>0.994376242</R21>
						<R22>-0.105868988</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">false</bool>
					<string name="Name">Handle5</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX204">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX205">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>8.52853107</X>
						<Y>0.892757833</Y>
						<Z>33.3970108</Z>
						<R00>0.000275478204</R00>
						<R01>-0.100674242</R01>
						<R02>0.99491936</R02>
						<R10>-0.99999696</R10>
						<R11>-0.00244080951</R11>
						<R12>2.99463554e-005</R12>
						<R20>0.00242536562</R20>
						<R21>-0.994916439</R21>
						<R22>-0.100674592</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">false</bool>
					<string name="Name">Handle6</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX206">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX207">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>8.63642025</X>
						<Y>0.892829478</Y>
						<Z>32.9836617</Z>
						<R00>0.10327217</R00>
						<R01>0.994653106</R01>
						<R02>-5.81713357e-006</R02>
						<R10>-0.000170290165</R10>
						<R11>2.35728858e-005</R11>
						<R12>0.99999994</R12>
						<R20>0.994653106</R20>
						<R21>-0.10327214</R21>
						<R22>0.000171842519</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">false</bool>
					<string name="Name">Handle2</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX208">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">6</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX209">
				<Properties>
					<bool name="Anchored">false</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">199</int>
					<CoordinateFrame name="CFrame">
						<X>8.18882656</X>
						<Y>0.892818868</Y>
						<Z>33.0301323</Z>
						<R00>0.10327217</R00>
						<R01>0.994653106</R01>
						<R02>-5.81713357e-006</R02>
						<R10>-0.000170290165</R10>
						<R11>2.35728858e-005</R11>
						<R12>0.99999994</R12>
						<R20>0.994653106</R20>
						<R21>-0.10327214</R21>
						<R22>0.000171842519</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">0</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">false</bool>
					<string name="Name">Handle</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">0</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>1</X>
						<Y>1</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX210">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>-1.10000002</Y>
							<Z>-0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX211">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX212">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2.5999999</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX213">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX214">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX215">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2.5999999</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX216">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX217">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>0.999996603</R02>
							<R10>0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>-0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX218">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>-0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>-0.999996603</R02>
							<R10>-0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX219">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">4</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>152118e5d77a69d35cc9ac149de8732d</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX220">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">10</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordlunge.wav</url></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX221">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">27</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX222">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX223">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">11</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX224">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">3</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX225">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">3</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX226">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX227">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX228">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX229">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX230">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX231">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX232">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX233">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX234">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX235">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX236">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX237">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX238">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX239">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX240">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX241">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX242">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX243">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX244">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX245">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX246">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX247">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX248">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX249">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX250">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX251">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX252">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX253">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX254">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX255">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX256">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX257">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX258">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX259">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX260">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX261">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX262">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX263">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX264">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX265">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX266">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX267">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX268">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX269">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX270">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX271">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX272">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX273">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX274">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX275">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX276">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX277">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX278">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX279">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX280">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX281">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX282">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX283">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\unsheath.wav</url></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX284">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX285">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\unsheath.wav</url></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX286">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">RBX209</Ref>
						<Ref name="Part1">RBX207</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX287">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2</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">Weld</string>
						<Ref name="Part0">RBX209</Ref>
						<Ref name="Part1">RBX198</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX288">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX209</Ref>
						<Ref name="Part1">RBX201</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX289">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>0.999996603</R02>
							<R10>0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>-0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX209</Ref>
						<Ref name="Part1">RBX203</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX290">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>-0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>-0.999996603</R02>
							<R10>-0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX209</Ref>
						<Ref name="Part1">RBX205</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
		</Item>
		<Item class="Tool" referent="RBX291">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">2</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<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">LightSaber(Purple)</string>
				<Content name="TextureId"><null></null></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Script" referent="RBX292">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Sword Script</string>
					<string name="Source">-------- OMG HAX

r = game:service(&quot;RunService&quot;)


local damage = 40


local slash_damage = 34

sword = script.Parent.Handle
Tool = script.Parent


local SlashSound = Instance.new(&quot;Sound&quot;)
SlashSound.SoundId = &quot;rbxasset://sounds\\swordslash.wav&quot;
SlashSound.Parent = sword
SlashSound.Volume = .7

local UnsheathSound = Instance.new(&quot;Sound&quot;)
UnsheathSound.SoundId = &quot;rbxasset://sounds\\unsheath.wav&quot;
UnsheathSound.Parent = sword
UnsheathSound.Volume = 1



function blow(hit)
	local humanoid = hit.Parent:findFirstChild(&quot;Humanoid&quot;)
	local vCharacter = Tool.Parent
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
	local hum = vCharacter:findFirstChild(&quot;Humanoid&quot;) -- non-nil if tool held by a character
	if humanoid~=nil and humanoid ~= hum and hum ~= nil then
		print(&quot;SWORD HIT&quot;)
		tagHumanoid(humanoid, vPlayer)
		humanoid:TakeDamage(damage)
		wait(1)
		untagHumanoid(humanoid)
	end
end


function tagHumanoid(humanoid, player)
	local creator_tag = Instance.new(&quot;ObjectValue&quot;)
	creator_tag.Value = player
	creator_tag.Name = &quot;creator&quot;
	creator_tag.Parent = humanoid
end

function untagHumanoid(humanoid)
	if humanoid ~= nil then
		local tag = humanoid:findFirstChild(&quot;creator&quot;)
		if tag ~= nil then
			tag.Parent = nil
		end
	end
end


function attack()
	damage = slash_damage
	SlashSound:play()
	local anim = Instance.new(&quot;StringValue&quot;)
	anim.Name = &quot;toolanim&quot;
	anim.Value = &quot;Slash&quot;
	anim.Parent = Tool
end


function swordUp()
	Tool.GripForward = Vector3.new(-1.1,0,0)
	Tool.GripRight = Vector3.new(0,1,0)
	Tool.GripUp = Vector3.new(0,0,1)
end

function swordOut()
	Tool.GripForward = Vector3.new(0,0,1)
	Tool.GripRight = Vector3.new(0,-1,0)
	Tool.GripUp = Vector3.new(-1,0,0)
end

function swordAcross()
	-- parry
end


Tool.Enabled = true
local last_attack = 0
function onActivated()

	if not Tool.Enabled then
		return
	end

	Tool.Enabled = false

	local character = Tool.Parent;
	local humanoid = character.Humanoid
	if humanoid == nil then
		print(&quot;Humanoid not found&quot;)
		return 
	end

	t = r.Stepped:wait()
	attack()
	last_attack = t

	--wait(.5)

	Tool.Enabled = true
end


function onEquipped()
	UnsheathSound:play()
end


script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)


connection = sword.Touched:connect(blow)


</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX293">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">WeldScript</string>
					<string name="Source">function Weldnow()
	local w1 = Instance.new(&quot;Weld&quot;)
	w1.Parent = script.Parent.Handle
	w1.Part0 = w1.Parent
	w1.Part1 = script.Parent.Handle2
	w1.C1 = CFrame.new(0, -.45, 0)
		
	local w2 = Instance.new(&quot;Weld&quot;)
	w2.Parent = script.Parent.Handle
	w2.Part0 = w1.Parent
	w2.Part1 = script.Parent.Handle3
	w2.C1 = CFrame.fromEulerAnglesXYZ(0, -4.715, 0) * CFrame.new(0, -2, 0)

	local w3 = Instance.new(&quot;Weld&quot;)
	w3.Parent = script.Parent.Handle
	w3.Part0 = w1.Parent
	w3.Part1 = script.Parent.Handle4
	w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 9.43) * CFrame.new(0, .45, 0)
end

script.Parent.Equipped:connect(Weldnow)
script.Parent.Unequipped:connect(Weldnow)

do
	local w1 = Instance.new(&quot;Weld&quot;)
	w1.Parent = script.Parent.Handle
	w1.Part0 = w1.Parent
	w1.Part1 = script.Parent.Handle2
	w1.C1 = CFrame.new(0, -.45, 0)
		
	local w2 = Instance.new(&quot;Weld&quot;)
	w2.Parent = script.Parent.Handle
	w2.Part0 = w1.Parent
	w2.Part1 = script.Parent.Handle3
	w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, -2, 0)

	local w3 = Instance.new(&quot;Weld&quot;)
	w3.Parent = script.Parent.Handle
	w3.Part0 = w1.Parent
	w3.Part1 = script.Parent.Handle4
	w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 9.43) * CFrame.new(0, .55, 0)

	local w4 = Instance.new(&quot;Weld&quot;)
	w4.Parent = script.Parent.Handle
	w4.Part0 = w1.Parent
	w4.Part1 = script.Parent.Handle5
	w4.C1 = CFrame.fromEulerAnglesXYZ(-4.715, -4.715, 0) * CFrame.new(.4, -.3, 0)

	local w5 = Instance.new(&quot;Weld&quot;)
	w5.Parent = script.Parent.Handle
	w5.Part0 = w1.Parent
	w5.Part1 = script.Parent.Handle6
	w5.C1 = CFrame.fromEulerAnglesXYZ(-4.715, 4.715, 0) * CFrame.new(-.4, -.3, 0)
end
</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="LocalScript" referent="RBX294">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">LocalScript</string>
					<string name="Source">local Tool = script.Parent;

enabled = true
function onButton1Down(mouse)
	if not enabled then
		return
	end

	enabled = false
	mouse.Icon = &quot;rbxasset://textures\\GunWaitCursor.png&quot;

	wait(.5)
	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	enabled = true

end

function onEquippedLocal(mouse)

	if mouse == nil then
		print(&quot;Mouse not found&quot;)
		return 
	end

	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)

	local g = script.Parent:GetChildren()
	for i=1, #g do
		if g[i].className == &quot;Part&quot; then
			g[i].CanCollide = false
		end
	end
end


Tool.Equipped:connect(onEquippedLocal)

function onUnequippedLocal(mouse)
	local g = script.Parent:GetChildren()
	for i=1, #g do
		if g[i].className == &quot;Part&quot; then
			g[i].CanCollide = true
		end
	end
end

Tool.Unequipped:connect(onUnequippedLocal)</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Part" referent="RBX295">
				<Properties>
					<bool name="Anchored">false</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">104</int>
					<CoordinateFrame name="CFrame">
						<X>10.1900501</X>
						<Y>0.892524242</Y>
						<Z>39.5333633</Z>
						<R00>-0.0389180221</R00>
						<R01>0.999242425</R01>
						<R02>8.26619798e-005</R02>
						<R10>0.000165640507</R10>
						<R11>-7.62753189e-005</R11>
						<R12>1</R12>
						<R20>0.999242425</R20>
						<R21>0.0389180109</R21>
						<R22>-0.000162566517</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">0</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">false</bool>
					<string name="Name">Handle3</string>
					<float name="Reflectance">0.25</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.25</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>1</X>
						<Y>5</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX296">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.400000006</X>
							<Y>1</Y>
							<Z>0.400000006</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Script" referent="RBX297">
					<Properties>
						<bool name="Disabled">false</bool>
						<Content name="LinkedSource"><null></null></Content>
						<string name="Name">Script</string>
						<string name="Source">--By Wirodeu, for socom1880

function onTouch(hit)
	if hit.Parent:findFirstChild(&quot;Humanoid&quot;) ~= nil then --Check if whatever touched the lava is a player
		hit.Parent:BreakJoints() --Remove snaps of player so he falls apart and dies! :)
	end
end

script.Parent.Touched:connect(onTouch)</string>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX298">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>7.64198208</X>
						<Y>0.892718732</Y>
						<Z>39.434124</Z>
						<R00>0.0441358536</R00>
						<R01>-0.999025524</R01>
						<R02>8.26619798e-005</R02>
						<R10>-0.000166036582</R10>
						<R11>7.54092471e-005</R11>
						<R12>1</R12>
						<R20>-0.999025524</R20>
						<R21>-0.0441358425</R21>
						<R22>-0.000162566517</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">false</bool>
					<string name="Name">Handle4</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX299">
					<Properties>
						<Content name="MeshId"><url>http://www.roblox.com/asset/?id=1778999</url></Content>
						<token name="MeshType">5</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.400000006</X>
							<Y>0.200000003</Y>
							<Z>0.400000006</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX300">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>8.50690556</X>
						<Y>0.892587602</Y>
						<Z>39.0675049</Z>
						<R00>-1.89598395e-005</R00>
						<R01>-0.036308784</R01>
						<R02>0.999340653</R02>
						<R10>0.99999702</R10>
						<R11>-0.00244572014</R11>
						<R12>-6.98893709e-005</R12>
						<R20>0.00244662492</R20>
						<R21>0.999337673</R21>
						<R22>0.0363086946</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">false</bool>
					<string name="Name">Handle5</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX301">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX302">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>8.47577095</X>
						<Y>0.892720163</Y>
						<Z>39.8669014</Z>
						<R00>-0.000184283243</R00>
						<R01>0.0415267311</R01>
						<R02>0.999137402</R02>
						<R10>-0.999996185</R10>
						<R11>-0.00277699879</R11>
						<R12>-6.90243396e-005</R12>
						<R20>0.00277175684</R20>
						<R21>-0.999133587</R21>
						<R22>0.0415270589</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">false</bool>
					<string name="Name">Handle6</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX303">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX304">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>8.64122486</X>
						<Y>0.892642438</Y>
						<Z>39.4730415</Z>
						<R00>-0.0389180221</R00>
						<R01>0.999242425</R01>
						<R02>8.26619798e-005</R02>
						<R10>0.000165640507</R10>
						<R11>-7.62753189e-005</R11>
						<R12>1</R12>
						<R20>0.999242425</R20>
						<R21>0.0389180109</R21>
						<R22>-0.000162566517</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">false</bool>
					<string name="Name">Handle2</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX305">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">6</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX306">
				<Properties>
					<bool name="Anchored">false</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">199</int>
					<CoordinateFrame name="CFrame">
						<X>8.19156551</X>
						<Y>0.892676771</Y>
						<Z>39.4555283</Z>
						<R00>-0.0389180221</R00>
						<R01>0.999242425</R01>
						<R02>8.26619798e-005</R02>
						<R10>0.000165640507</R10>
						<R11>-7.62753189e-005</R11>
						<R12>1</R12>
						<R20>0.999242425</R20>
						<R21>0.0389180109</R21>
						<R22>-0.000162566517</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">0</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">false</bool>
					<string name="Name">Handle</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">0</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>1</X>
						<Y>1</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX307">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>-1.10000002</Y>
							<Z>-0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX308">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX309">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2.5999999</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX310">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX311">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX312">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2.5999999</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX313">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX314">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>0.999996603</R02>
							<R10>0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>-0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX315">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>-0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>-0.999996603</R02>
							<R10>-0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX316">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">4</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>152118e5d77a69d35cc9ac149de8732d</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX317">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">10</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordlunge.wav</url></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX318">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">27</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX319">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX320">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">11</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX321">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">3</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX322">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">3</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX323">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX324">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX325">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX326">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX327">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX328">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX329">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX330">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX331">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX332">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX333">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX334">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX335">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX336">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX337">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX338">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX339">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX340">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX341">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX342">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX343">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX344">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX345">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX346">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX347">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX348">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX349">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX350">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX351">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX352">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX353">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX354">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX355">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX356">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX357">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX358">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX359">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX360">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX361">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX362">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX363">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX364">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX365">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX366">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX367">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX368">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX369">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX370">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX371">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX372">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX373">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX374">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX375">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX376">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX377">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX378">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX379">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX380">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\unsheath.wav</url></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX381">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX382">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\unsheath.wav</url></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX383">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">RBX306</Ref>
						<Ref name="Part1">RBX304</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX384">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2</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">Weld</string>
						<Ref name="Part0">RBX306</Ref>
						<Ref name="Part1">RBX295</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX385">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX306</Ref>
						<Ref name="Part1">RBX298</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX386">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>0.999996603</R02>
							<R10>0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>-0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX306</Ref>
						<Ref name="Part1">RBX300</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX387">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>-0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>-0.999996603</R02>
							<R10>-0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX306</Ref>
						<Ref name="Part1">RBX302</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
		</Item>
		<Item class="Tool" referent="RBX388">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">2</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<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">LightSaber(Red)</string>
				<Content name="TextureId"><null></null></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Script" referent="RBX389">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Sword Script</string>
					<string name="Source">-------- OMG HAX

r = game:service(&quot;RunService&quot;)


local damage = 40


local slash_damage = 34

sword = script.Parent.Handle
Tool = script.Parent


local SlashSound = Instance.new(&quot;Sound&quot;)
SlashSound.SoundId = &quot;rbxasset://sounds\\swordslash.wav&quot;
SlashSound.Parent = sword
SlashSound.Volume = .7

local UnsheathSound = Instance.new(&quot;Sound&quot;)
UnsheathSound.SoundId = &quot;rbxasset://sounds\\unsheath.wav&quot;
UnsheathSound.Parent = sword
UnsheathSound.Volume = 1



function blow(hit)
	local humanoid = hit.Parent:findFirstChild(&quot;Humanoid&quot;)
	local vCharacter = Tool.Parent
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
	local hum = vCharacter:findFirstChild(&quot;Humanoid&quot;) -- non-nil if tool held by a character
	if humanoid~=nil and humanoid ~= hum and hum ~= nil then
		print(&quot;SWORD HIT&quot;)
		tagHumanoid(humanoid, vPlayer)
		humanoid:TakeDamage(damage)
		wait(1)
		untagHumanoid(humanoid)
	end
end


function tagHumanoid(humanoid, player)
	local creator_tag = Instance.new(&quot;ObjectValue&quot;)
	creator_tag.Value = player
	creator_tag.Name = &quot;creator&quot;
	creator_tag.Parent = humanoid
end

function untagHumanoid(humanoid)
	if humanoid ~= nil then
		local tag = humanoid:findFirstChild(&quot;creator&quot;)
		if tag ~= nil then
			tag.Parent = nil
		end
	end
end


function attack()
	damage = slash_damage
	SlashSound:play()
	local anim = Instance.new(&quot;StringValue&quot;)
	anim.Name = &quot;toolanim&quot;
	anim.Value = &quot;Slash&quot;
	anim.Parent = Tool
end


function swordUp()
	Tool.GripForward = Vector3.new(-1.1,0,0)
	Tool.GripRight = Vector3.new(0,1,0)
	Tool.GripUp = Vector3.new(0,0,1)
end

function swordOut()
	Tool.GripForward = Vector3.new(0,0,1)
	Tool.GripRight = Vector3.new(0,-1,0)
	Tool.GripUp = Vector3.new(-1,0,0)
end

function swordAcross()
	-- parry
end


Tool.Enabled = true
local last_attack = 0
function onActivated()

	if not Tool.Enabled then
		return
	end

	Tool.Enabled = false

	local character = Tool.Parent;
	local humanoid = character.Humanoid
	if humanoid == nil then
		print(&quot;Humanoid not found&quot;)
		return 
	end

	t = r.Stepped:wait()
	attack()
	last_attack = t

	--wait(.5)

	Tool.Enabled = true
end


function onEquipped()
	UnsheathSound:play()
end


script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)


connection = sword.Touched:connect(blow)


</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX390">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">WeldScript</string>
					<string name="Source">function Weldnow()
	local w1 = Instance.new(&quot;Weld&quot;)
	w1.Parent = script.Parent.Handle
	w1.Part0 = w1.Parent
	w1.Part1 = script.Parent.Handle2
	w1.C1 = CFrame.new(0, -.45, 0)
		
	local w2 = Instance.new(&quot;Weld&quot;)
	w2.Parent = script.Parent.Handle
	w2.Part0 = w1.Parent
	w2.Part1 = script.Parent.Handle3
	w2.C1 = CFrame.fromEulerAnglesXYZ(0, -4.715, 0) * CFrame.new(0, -2, 0)

	local w3 = Instance.new(&quot;Weld&quot;)
	w3.Parent = script.Parent.Handle
	w3.Part0 = w1.Parent
	w3.Part1 = script.Parent.Handle4
	w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 9.43) * CFrame.new(0, .45, 0)
end

script.Parent.Equipped:connect(Weldnow)
script.Parent.Unequipped:connect(Weldnow)

do
	local w1 = Instance.new(&quot;Weld&quot;)
	w1.Parent = script.Parent.Handle
	w1.Part0 = w1.Parent
	w1.Part1 = script.Parent.Handle2
	w1.C1 = CFrame.new(0, -.45, 0)
		
	local w2 = Instance.new(&quot;Weld&quot;)
	w2.Parent = script.Parent.Handle
	w2.Part0 = w1.Parent
	w2.Part1 = script.Parent.Handle3
	w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, -2, 0)

	local w3 = Instance.new(&quot;Weld&quot;)
	w3.Parent = script.Parent.Handle
	w3.Part0 = w1.Parent
	w3.Part1 = script.Parent.Handle4
	w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 9.43) * CFrame.new(0, .55, 0)

	local w4 = Instance.new(&quot;Weld&quot;)
	w4.Parent = script.Parent.Handle
	w4.Part0 = w1.Parent
	w4.Part1 = script.Parent.Handle5
	w4.C1 = CFrame.fromEulerAnglesXYZ(-4.715, -4.715, 0) * CFrame.new(.4, -.3, 0)

	local w5 = Instance.new(&quot;Weld&quot;)
	w5.Parent = script.Parent.Handle
	w5.Part0 = w1.Parent
	w5.Part1 = script.Parent.Handle6
	w5.C1 = CFrame.fromEulerAnglesXYZ(-4.715, 4.715, 0) * CFrame.new(-.4, -.3, 0)
end
</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="LocalScript" referent="RBX391">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">LocalScript</string>
					<string name="Source">local Tool = script.Parent;

enabled = true
function onButton1Down(mouse)
	if not enabled then
		return
	end

	enabled = false
	mouse.Icon = &quot;rbxasset://textures\\GunWaitCursor.png&quot;

	wait(.5)
	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	enabled = true

end

function onEquippedLocal(mouse)

	if mouse == nil then
		print(&quot;Mouse not found&quot;)
		return 
	end

	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)

	local g = script.Parent:GetChildren()
	for i=1, #g do
		if g[i].className == &quot;Part&quot; then
			g[i].CanCollide = false
		end
	end
end


Tool.Equipped:connect(onEquippedLocal)

function onUnequippedLocal(mouse)
	local g = script.Parent:GetChildren()
	for i=1, #g do
		if g[i].className == &quot;Part&quot; then
			g[i].CanCollide = true
		end
	end
end

Tool.Unequipped:connect(onUnequippedLocal)</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Part" referent="RBX392">
				<Properties>
					<bool name="Anchored">false</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">21</int>
					<CoordinateFrame name="CFrame">
						<X>10.227478</X>
						<Y>0.892749608</Y>
						<Z>41.4843636</Z>
						<R00>-0.00124875503</R00>
						<R01>0.999999166</R01>
						<R02>1.15946768e-005</R02>
						<R10>-0.000140647157</R10>
						<R11>-1.17411182e-005</R11>
						<R12>0.99999994</R12>
						<R20>0.999999166</R20>
						<R21>0.00124876271</R21>
						<R22>0.000140696618</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">0</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">false</bool>
					<string name="Name">Handle3</string>
					<float name="Reflectance">0.25</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.25</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>1</X>
						<Y>5</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX393">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.400000006</X>
							<Y>1</Y>
							<Z>0.400000006</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Script" referent="RBX394">
					<Properties>
						<bool name="Disabled">false</bool>
						<Content name="LinkedSource"><null></null></Content>
						<string name="Name">Script</string>
						<string name="Source">--By Wirodeu, for socom1880

function onTouch(hit)
	if hit.Parent:findFirstChild(&quot;Humanoid&quot;) ~= nil then --Check if whatever touched the lava is a player
		hit.Parent:BreakJoints() --Remove snaps of player so he falls apart and dies! :)
	end
end

script.Parent.Touched:connect(onTouch)</string>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX395">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>7.67748022</X>
						<Y>0.892779529</Y>
						<Z>41.4811783</Z>
						<R00>0.00647105416</R00>
						<R01>-0.999979019</R01>
						<R02>1.15946768e-005</R02>
						<R10>0.000140583914</R10>
						<R11>1.24754624e-005</R11>
						<R12>0.99999994</R12>
						<R20>-0.999979019</R20>
						<R21>-0.00647106208</R21>
						<R22>0.000140696618</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">false</bool>
					<string name="Name">Handle4</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX396">
					<Properties>
						<Content name="MeshId"><url>http://www.roblox.com/asset/?id=1778999</url></Content>
						<token name="MeshType">5</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.400000006</X>
							<Y>0.200000003</Y>
							<Z>0.400000006</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX397">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>8.5279789</X>
						<Y>0.892825842</Y>
						<Z>41.0822411</Z>
						<R00>8.33392642e-006</R00>
						<R01>0.00136239012</R01>
						<R02>0.999999046</R02>
						<R10>0.999996185</R10>
						<R11>-0.00275183702</R11>
						<R12>-4.55562213e-006</R12>
						<R20>0.0027518631</R20>
						<R21>0.999995291</R21>
						<R22>-0.00136239862</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">false</bool>
					<string name="Name">Handle5</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX398">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX399">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>8.5269804</X>
						<Y>0.892713308</Y>
						<Z>41.8822403</Z>
						<R00>-1.48553481e-005</R00>
						<R01>0.00385988317</R01>
						<R02>0.99999249</R02>
						<R10>-0.999996901</R10>
						<R11>-0.00247054454</R11>
						<R12>-5.29012641e-006</R12>
						<R20>0.00247047073</R20>
						<R21>-0.99998945</R21>
						<R22>0.00385991763</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">false</bool>
					<string name="Name">Handle6</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX400">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX401">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>8.67747974</X>
						<Y>0.892767787</Y>
						<Z>41.4824257</Z>
						<R00>-0.00124875503</R00>
						<R01>0.999999166</R01>
						<R02>1.15946768e-005</R02>
						<R10>-0.000140647157</R10>
						<R11>-1.17411182e-005</R11>
						<R12>0.99999994</R12>
						<R20>0.999999166</R20>
						<R21>0.00124876271</R21>
						<R22>0.000140696618</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">false</bool>
					<string name="Name">Handle2</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX402">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">6</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX403">
				<Properties>
					<bool name="Anchored">false</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">199</int>
					<CoordinateFrame name="CFrame">
						<X>8.22747993</X>
						<Y>0.892773092</Y>
						<Z>41.4818649</Z>
						<R00>-0.00124875503</R00>
						<R01>0.999999166</R01>
						<R02>1.15946768e-005</R02>
						<R10>-0.000140647157</R10>
						<R11>-1.17411182e-005</R11>
						<R12>0.99999994</R12>
						<R20>0.999999166</R20>
						<R21>0.00124876271</R21>
						<R22>0.000140696618</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">0</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">false</bool>
					<string name="Name">Handle</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">0</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>1</X>
						<Y>1</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX404">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>-1.10000002</Y>
							<Z>-0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX405">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX406">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2.5999999</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX407">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX408">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX409">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2.5999999</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX410">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX411">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>0.999996603</R02>
							<R10>0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>-0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX412">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>-0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>-0.999996603</R02>
							<R10>-0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX413">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">4</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>152118e5d77a69d35cc9ac149de8732d</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX414">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">10</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordlunge.wav</url></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX415">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">27</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX416">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX417">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">11</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX418">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">3</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX419">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">3</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX420">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX421">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX422">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX423">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX424">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX425">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX426">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX427">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX428">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX429">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX430">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX431">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX432">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX433">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX434">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX435">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX436">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX437">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX438">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX439">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX440">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX441">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX442">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX443">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX444">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX445">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX446">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX447">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX448">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX449">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX450">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX451">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX452">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX453">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX454">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX455">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX456">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX457">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX458">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX459">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX460">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX461">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX462">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX463">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX464">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX465">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX466">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX467">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX468">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX469">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX470">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX471">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX472">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX473">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX474">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX475">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX476">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX477">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\unsheath.wav</url></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX478">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX479">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\unsheath.wav</url></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX480">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">RBX403</Ref>
						<Ref name="Part1">RBX401</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX481">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2</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">Weld</string>
						<Ref name="Part0">RBX403</Ref>
						<Ref name="Part1">RBX392</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX482">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX403</Ref>
						<Ref name="Part1">RBX395</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX483">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>0.999996603</R02>
							<R10>0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>-0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX403</Ref>
						<Ref name="Part1">RBX397</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX484">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>-0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>-0.999996603</R02>
							<R10>-0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX403</Ref>
						<Ref name="Part1">RBX399</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
		</Item>
		<Item class="Tool" referent="RBX485">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">2</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<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">LightSaber(yellow)</string>
				<Content name="TextureId"><null></null></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Script" referent="RBX486">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Sword Script</string>
					<string name="Source">-------- OMG HAX

r = game:service(&quot;RunService&quot;)


local damage = 40


local slash_damage = 34

sword = script.Parent.Handle
Tool = script.Parent


local SlashSound = Instance.new(&quot;Sound&quot;)
SlashSound.SoundId = &quot;rbxasset://sounds\\swordslash.wav&quot;
SlashSound.Parent = sword
SlashSound.Volume = .7

local UnsheathSound = Instance.new(&quot;Sound&quot;)
UnsheathSound.SoundId = &quot;rbxasset://sounds\\unsheath.wav&quot;
UnsheathSound.Parent = sword
UnsheathSound.Volume = 1



function blow(hit)
	local humanoid = hit.Parent:findFirstChild(&quot;Humanoid&quot;)
	local vCharacter = Tool.Parent
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
	local hum = vCharacter:findFirstChild(&quot;Humanoid&quot;) -- non-nil if tool held by a character
	if humanoid~=nil and humanoid ~= hum and hum ~= nil then
		print(&quot;SWORD HIT&quot;)
		tagHumanoid(humanoid, vPlayer)
		humanoid:TakeDamage(damage)
		wait(1)
		untagHumanoid(humanoid)
	end
end


function tagHumanoid(humanoid, player)
	local creator_tag = Instance.new(&quot;ObjectValue&quot;)
	creator_tag.Value = player
	creator_tag.Name = &quot;creator&quot;
	creator_tag.Parent = humanoid
end

function untagHumanoid(humanoid)
	if humanoid ~= nil then
		local tag = humanoid:findFirstChild(&quot;creator&quot;)
		if tag ~= nil then
			tag.Parent = nil
		end
	end
end


function attack()
	damage = slash_damage
	SlashSound:play()
	local anim = Instance.new(&quot;StringValue&quot;)
	anim.Name = &quot;toolanim&quot;
	anim.Value = &quot;Slash&quot;
	anim.Parent = Tool
end


function swordUp()
	Tool.GripForward = Vector3.new(-1.1,0,0)
	Tool.GripRight = Vector3.new(0,1,0)
	Tool.GripUp = Vector3.new(0,0,1)
end

function swordOut()
	Tool.GripForward = Vector3.new(0,0,1)
	Tool.GripRight = Vector3.new(0,-1,0)
	Tool.GripUp = Vector3.new(-1,0,0)
end

function swordAcross()
	-- parry
end


Tool.Enabled = true
local last_attack = 0
function onActivated()

	if not Tool.Enabled then
		return
	end

	Tool.Enabled = false

	local character = Tool.Parent;
	local humanoid = character.Humanoid
	if humanoid == nil then
		print(&quot;Humanoid not found&quot;)
		return 
	end

	t = r.Stepped:wait()
	attack()
	last_attack = t

	--wait(.5)

	Tool.Enabled = true
end


function onEquipped()
	UnsheathSound:play()
end


script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)


connection = sword.Touched:connect(blow)


</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX487">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">WeldScript</string>
					<string name="Source">function Weldnow()
	local w1 = Instance.new(&quot;Weld&quot;)
	w1.Parent = script.Parent.Handle
	w1.Part0 = w1.Parent
	w1.Part1 = script.Parent.Handle2
	w1.C1 = CFrame.new(0, -.45, 0)
		
	local w2 = Instance.new(&quot;Weld&quot;)
	w2.Parent = script.Parent.Handle
	w2.Part0 = w1.Parent
	w2.Part1 = script.Parent.Handle3
	w2.C1 = CFrame.fromEulerAnglesXYZ(0, -4.715, 0) * CFrame.new(0, -2, 0)

	local w3 = Instance.new(&quot;Weld&quot;)
	w3.Parent = script.Parent.Handle
	w3.Part0 = w1.Parent
	w3.Part1 = script.Parent.Handle4
	w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 9.43) * CFrame.new(0, .45, 0)
end

script.Parent.Equipped:connect(Weldnow)
script.Parent.Unequipped:connect(Weldnow)

do
	local w1 = Instance.new(&quot;Weld&quot;)
	w1.Parent = script.Parent.Handle
	w1.Part0 = w1.Parent
	w1.Part1 = script.Parent.Handle2
	w1.C1 = CFrame.new(0, -.45, 0)
		
	local w2 = Instance.new(&quot;Weld&quot;)
	w2.Parent = script.Parent.Handle
	w2.Part0 = w1.Parent
	w2.Part1 = script.Parent.Handle3
	w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, -2, 0)

	local w3 = Instance.new(&quot;Weld&quot;)
	w3.Parent = script.Parent.Handle
	w3.Part0 = w1.Parent
	w3.Part1 = script.Parent.Handle4
	w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 9.43) * CFrame.new(0, .55, 0)

	local w4 = Instance.new(&quot;Weld&quot;)
	w4.Parent = script.Parent.Handle
	w4.Part0 = w1.Parent
	w4.Part1 = script.Parent.Handle5
	w4.C1 = CFrame.fromEulerAnglesXYZ(-4.715, -4.715, 0) * CFrame.new(.4, -.3, 0)

	local w5 = Instance.new(&quot;Weld&quot;)
	w5.Parent = script.Parent.Handle
	w5.Part0 = w1.Parent
	w5.Part1 = script.Parent.Handle6
	w5.C1 = CFrame.fromEulerAnglesXYZ(-4.715, 4.715, 0) * CFrame.new(-.4, -.3, 0)
end
</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="LocalScript" referent="RBX488">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">LocalScript</string>
					<string name="Source">local Tool = script.Parent;

enabled = true
function onButton1Down(mouse)
	if not enabled then
		return
	end

	enabled = false
	mouse.Icon = &quot;rbxasset://textures\\GunWaitCursor.png&quot;

	wait(.5)
	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	enabled = true

end

function onEquippedLocal(mouse)

	if mouse == nil then
		print(&quot;Mouse not found&quot;)
		return 
	end

	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)

	local g = script.Parent:GetChildren()
	for i=1, #g do
		if g[i].className == &quot;Part&quot; then
			g[i].CanCollide = false
		end
	end
end


Tool.Equipped:connect(onEquippedLocal)

function onUnequippedLocal(mouse)
	local g = script.Parent:GetChildren()
	for i=1, #g do
		if g[i].className == &quot;Part&quot; then
			g[i].CanCollide = true
		end
	end
end

Tool.Unequipped:connect(onUnequippedLocal)</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Part" referent="RBX489">
				<Properties>
					<bool name="Anchored">false</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">24</int>
					<CoordinateFrame name="CFrame">
						<X>10.3555174</X>
						<Y>0.892564774</Y>
						<Z>38.1235085</Z>
						<R00>-0.0162052531</R00>
						<R01>0.999868691</R01>
						<R02>4.81893003e-005</R02>
						<R10>0.000349818351</R10>
						<R11>-4.25353646e-005</R11>
						<R12>0.99999994</R12>
						<R20>0.999868631</R20>
						<R21>0.0162052568</R21>
						<R22>-0.000349087699</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">0</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">false</bool>
					<string name="Name">Handle3</string>
					<float name="Reflectance">0.25</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.25</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>1</X>
						<Y>5</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX490">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.400000006</X>
							<Y>1</Y>
							<Z>0.400000006</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Script" referent="RBX491">
					<Properties>
						<bool name="Disabled">false</bool>
						<Content name="LinkedSource"><null></null></Content>
						<string name="Name">Script</string>
						<string name="Source">--By Wirodeu, for socom1880

function onTouch(hit)
	if hit.Parent:findFirstChild(&quot;Humanoid&quot;) ~= nil then --Check if whatever touched the lava is a player
		hit.Parent:BreakJoints() --Remove snaps of player so he falls apart and dies! :)
	end
end

script.Parent.Touched:connect(onTouch)</string>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX492">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>7.80585194</X>
						<Y>0.892673194</Y>
						<Z>38.0821877</Z>
						<R00>0.0214266665</R00>
						<R01>-0.999770403</R01>
						<R02>4.81893003e-005</R02>
						<R10>-0.000350035698</R10>
						<R11>4.07079206e-005</R11>
						<R12>0.99999994</R12>
						<R20>-0.999770343</R20>
						<R21>-0.0214266703</R21>
						<R22>-0.000349087699</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">false</bool>
					<string name="Name">Handle4</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX493">
					<Properties>
						<Content name="MeshId"><url>http://www.roblox.com/asset/?id=1778999</url></Content>
						<token name="MeshType">5</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.400000006</X>
							<Y>0.200000003</Y>
							<Z>0.400000006</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX494">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>8.66222191</X>
						<Y>0.892497122</Y>
						<Z>37.6960144</Z>
						<R00>5.87447994e-006</R00>
						<R01>-0.013594443</R01>
						<R02>0.999907613</R02>
						<R10>0.999997437</R10>
						<R11>-0.00226145517</R11>
						<R12>-3.66304484e-005</R12>
						<R20>0.00226173969</R20>
						<R21>0.99990505</R21>
						<R22>0.0135943824</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">false</bool>
					<string name="Name">Handle5</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX495">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX496">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>8.64925861</X>
						<Y>0.892777026</Y>
						<Z>38.4959068</Z>
						<R00>-9.05037959e-005</R00>
						<R01>0.0188158434</R01>
						<R02>0.999822974</R02>
						<R10>-0.999995649</R10>
						<R11>-0.00296108727</R11>
						<R12>-3.48035828e-005</R12>
						<R20>0.00295991264</R20>
						<R21>-0.999818623</R21>
						<R22>0.0188160166</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">false</bool>
					<string name="Name">Handle6</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX497">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX498">
				<Properties>
					<bool name="Anchored">false</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">208</int>
					<CoordinateFrame name="CFrame">
						<X>8.80572033</X>
						<Y>0.892630696</Y>
						<Z>38.0983925</Z>
						<R00>-0.0162052531</R00>
						<R01>0.999868691</R01>
						<R02>4.81893003e-005</R02>
						<R10>0.000349818351</R10>
						<R11>-4.25353646e-005</R11>
						<R12>0.99999994</R12>
						<R20>0.999868631</R20>
						<R21>0.0162052568</R21>
						<R22>-0.000349087699</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">false</bool>
					<string name="Name">Handle2</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">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0.99000001</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>1</X>
						<Y>0.400000006</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX499">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">6</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX500">
				<Properties>
					<bool name="Anchored">false</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">199</int>
					<CoordinateFrame name="CFrame">
						<X>8.35577965</X>
						<Y>0.892649829</Y>
						<Z>38.0910988</Z>
						<R00>-0.0162052531</R00>
						<R01>0.999868691</R01>
						<R02>4.81893003e-005</R02>
						<R10>0.000349818351</R10>
						<R11>-4.25353646e-005</R11>
						<R12>0.99999994</R12>
						<R20>0.999868631</R20>
						<R21>0.0162052568</R21>
						<R22>-0.000349087699</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">0</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">false</bool>
					<string name="Name">Handle</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">0</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>1</X>
						<Y>1</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX501">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>-1.10000002</Y>
							<Z>-0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX502">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX503">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2.5999999</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX504">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX505">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX506">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2.5999999</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">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX507">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX508">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>0.999996603</R02>
							<R10>0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>-0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX509">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>-0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>-0.999996603</R02>
							<R10>-0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">null</Ref>
						<Ref name="Part1">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX510">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">4</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>152118e5d77a69d35cc9ac149de8732d</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX511">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">10</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordlunge.wav</url></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX512">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">27</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX513">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX514">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">11</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX515">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">3</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX516">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">3</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX517">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX518">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX519">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX520">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX521">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX522">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX523">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX524">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX525">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX526">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX527">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX528">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX529">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX530">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX531">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX532">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX533">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX534">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX535">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX536">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX537">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX538">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX539">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX540">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX541">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX542">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX543">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX544">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX545">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX546">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX547">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX548">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX549">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX550">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX551">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX552">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX553">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX554">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX555">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX556">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX557">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX558">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX559">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX560">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX561">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX562">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX563">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX564">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX565">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX566">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX567">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX568">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX569">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX570">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>29fd30da68440c59c95c4d6b8eb3ac69</hash></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX571">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>38f1aacb8e5c0a99d6b4d3881a5d7834</hash></Content>
						<float name="Volume">0.600000024</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX572">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><hash>5663efc7c9beb60fe83891f8e1bb8b2c</hash></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX573">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX574">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\unsheath.wav</url></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX575">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\swordslash.wav</url></Content>
						<float name="Volume">0.699999988</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Sound" referent="RBX576">
					<Properties>
						<bool name="Looped">false</bool>
						<string name="Name">Sound</string>
						<int name="PlayCount">-1</int>
						<bool name="PlayOnRemove">false</bool>
						<Content name="SoundId"><url>rbxasset://sounds\unsheath.wav</url></Content>
						<float name="Volume">1</float>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX577">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-0.449999988</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">Weld</string>
						<Ref name="Part0">RBX500</Ref>
						<Ref name="Part1">RBX498</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX578">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0</X>
							<Y>-2</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">Weld</string>
						<Ref name="Part0">RBX500</Ref>
						<Ref name="Part1">RBX489</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX579">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00287227635</X>
							<Y>-0.549992502</Y>
							<Z>0</Z>
							<R00>-0.999986351</R00>
							<R01>0.00522232056</R01>
							<R02>0</R02>
							<R10>-0.00522232056</R10>
							<R11>-0.999986351</R11>
							<R12>0</R12>
							<R20>0</R20>
							<R21>0</R21>
							<R22>1</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX500</Ref>
						<Ref name="Part1">RBX492</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX580">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>0.999996603</R02>
							<R10>0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>-0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX500</Ref>
						<Ref name="Part1">RBX494</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Weld" referent="RBX581">
					<Properties>
						<CoordinateFrame name="C0">
							<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="C1">
							<X>-0.00104446767</X>
							<Y>0.39921394</Y>
							<Z>-0.301043451</Z>
							<R00>0.00261116913</R00>
							<R01>0</R01>
							<R02>-0.999996603</R02>
							<R10>-0.999993205</R10>
							<R11>0.00261116913</R11>
							<R12>-0.00261116028</R12>
							<R20>0.00261116028</R20>
							<R21>0.999996603</R21>
							<R22>6.81820438e-006</R22>
						</CoordinateFrame>
						<string name="Name">Weld</string>
						<Ref name="Part0">RBX500</Ref>
						<Ref name="Part1">RBX496</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
		</Item>
		<Item class="Model" referent="RBX582">
			<Properties>
				<token name="Controller">0</token>
				<bool name="ControllerFlagShown">true</bool>
				<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">Model</string>
				<Ref name="PrimaryPart">RBX583</Ref>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Model" referent="RBX584">
				<Properties>
					<token name="Controller">0</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Trophy</string>
					<Ref name="PrimaryPart">null</Ref>
					<bool name="archivable">true</bool>
				</Properties>
				<Item class="Model" referent="RBX585">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Trophy Stand</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Script" referent="RBX586">
					<Properties>
						<bool name="Disabled">false</bool>
						<Content name="LinkedSource"><null></null></Content>
						<string name="Name">Trophy History</string>
						<string name="Source">--Place your trophy history here.
--Joined: Place your joined date here.</string>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Model" referent="RBX587">
				<Properties>
					<token name="Controller">7</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Wolf O&apos;Donnell</string>
					<Ref name="PrimaryPart">RBX583</Ref>
					<bool name="archivable">true</bool>
				</Properties>
				<Item class="Part" referent="RBX583">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>61</X>
							<Y>4.79579163</Y>
							<Z>41.5</Z>
							<R00>-1</R00>
							<R01>-3.52055824e-021</R01>
							<R02>-2.5592278e-019</R02>
							<R10>-3.52055824e-021</R10>
							<R11>1</R11>
							<R12>4.83187094e-021</R12>
							<R20>2.5592278e-019</R20>
							<R21>4.83187094e-021</R21>
							<R22>-1</R22>
						</CoordinateFrame>
						<bool name="CanCollide">false</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">0</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">false</bool>
						<string name="Name">Head</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">0</token>
						<token name="TopSurfaceInput">0</token>
						<float name="Transparency">0</float>
						<Vector3 name="Velocity">
							<X>0</X>
							<Y>-1</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
					</Properties>
					<Item class="SpecialMesh" referent="RBX588">
						<Properties>
							<Content name="MeshId"><null></null></Content>
							<token name="MeshType">0</token>
							<string name="Name">Mesh</string>
							<Vector3 name="Scale">
								<X>1.25</X>
								<Y>1.25</Y>
								<Z>1.25</Z>
							</Vector3>
							<Content name="TextureId"><null></null></Content>
							<Vector3 name="VertexColor">
								<X>1</X>
								<Y>1</Y>
								<Z>1</Z>
							</Vector3>
							<bool name="archivable">true</bool>
						</Properties>
					</Item>
					<Item class="Decal" referent="RBX589">
						<Properties>
							<token name="Face">5</token>
							<string name="Name">face</string>
							<float name="Shiny">20</float>
							<float name="Specular">0</float>
							<Content name="Texture"><hash>b0c3fd281c77535b29d7d191d47d580e</hash></Content>
							<bool name="archivable">true</bool>
						</Properties>
					</Item>
				</Item>
				<Item class="Part" referent="RBX590">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">11</int>
						<CoordinateFrame name="CFrame">
							<X>61</X>
							<Y>3.29579186</Y>
							<Z>41.5</Z>
							<R00>-1</R00>
							<R01>-3.52055824e-021</R01>
							<R02>-2.5592278e-019</R02>
							<R10>-3.52055824e-021</R10>
							<R11>1</R11>
							<R12>4.83187094e-021</R12>
							<R20>2.5592278e-019</R20>
							<R21>4.83187094e-021</R21>
							<R22>-1</R22>
						</CoordinateFrame>
						<bool name="CanCollide">false</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">0</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</float>
						<float name="LeftParamB">0</float>
						<token name="LeftSurface">2</token>
						<token name="LeftSurfaceInput">0</token>
						<bool name="Locked">false</bool>
						<string name="Name">Torso</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">0</float>
						<float name="RightParamB">0</float>
						<token name="RightSurface">2</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>-1</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>2</Y>
							<Z>1</Z>
						</Vector3>
					</Properties>
					<Item class="Decal" referent="RBX591">
						<Properties>
							<token name="Face">5</token>
							<string name="Name">FoxTop</string>
							<float name="Shiny">20</float>
							<float name="Specular">0</float>
							<Content name="Texture" mimeType="image/jpeg"><binary xmime:contentType="image/jpeg">/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRof
Hh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwh
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAAR
CABvAJYDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAA
AgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK
FhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWG
h4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl
5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREA
AgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYk
NOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE
hYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk
5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDvvEcM+qaVf6ak5ieeFkSQEgq3Y5rwy01H
VbdpNPvZ7mK9tT5csbSHPHf6Gverz/j4avPviN4ckvLZPEGnx7r+zXE6KOZoe/1IrmxFL2sL
Lc9fJcxWBxKlNXi9H6d/kch/aN7/AM/c/wD38NH9o3v/AD9z/wDfw1SgnjuYUljbKMMipK8N
tp2Z+qxjTlFSik0yz/aN7/z9z/8Afw0f2je/8/c//fw1WoouyvZw7Is/2je/8/c//fw0f2je
/wDP3P8A9/DVaii7D2cOyLP9o3v/AD9z/wDfw0f2je/8/c//AH8NVqKLsPZw7Is/2je/8/c/
/fw0f2je/wDP3P8A9/DVaii7D2cOyLP9o3v/AD9z/wDfw0f2je/8/c//AH8NVqKLsPZw7I6T
4eajeP49uke5ldP7PJ2u5IzuFeq/bJv71eNeB5xa/EW3VjgXlq8I+owa9er3cM70on5NncHD
MKqfcn+2Tf3qPtk396oKK2PLNKxupWL5PpRUNh1k/CimBFef8fDVADg1Pef8fDVBSA8i8beH
F8MarHqViNulX8u2SLtBKfT2NZVeueKNHXXvDN/pxGZHjLxeokXlcflivGdPna4so2fiRfkk
HcMODXmY+kk1UR95wlj5TjLCTe2q9OqLVFFFecfaBRRRQAUUUUAFFFFABRRRQBb8Nf8AJRdA
/wB6T/0GvZ68Y8Nf8lF0H/ek/wDQa9nr3MJ/Bj/XU/KuI/8AkZ1fl/6SgoooroPELlh1k/Ci
iw6yfhRTAivP+Phqgqe8/wCPhqgpAKCQQR1HSvHvGWlDQPF7yRptsdU/exeiy/xL/WvYK5b4
jWCX3ga/cqPNtNtzE3cEHn9DUVaaqQcWdmAxksHiI149PxXVHm1FRwSebbxyf31DfmKkr55q
2h+xRkpJSXUKKKKCgooooAKKKKACiiigDS8FKG+JFjkZ220hHseK9gryDwR/yUiz/wCvWX+l
ev17uF/gxPyfP/8AkZVfX9EFFFFbnjlyw6yfhRRYdZPwopgRXn/Hw1QVPef8fDVBSAKw/Gn/
ACI+t/8AXq38xW5WH40/5EfW/wDr1b+Ypiex5FZf8eFv/wBcl/lU9QWX/Hhb/wDXJf5VPXzc
viZ+2UP4UfRfkFFFFI1CiiigAooooAKKKKANTwKN3xIgz/DZyEfmK9eryLwJ/wAlHi/68ZP5
ivXa93DfwYn5Lnv/ACMavr+iCiiitzyS5YdZPwoosOsn4UUwIrz/AI+GqCp7z/j4aoKQBWH4
0/5EfW/+vVv5itysbxcgfwZrSt0+yN/SmJ7Hj9l/x4W//XJf5VPVewOdPtyf+ea/yqxXzk/i
Z+14d3ow9F+QUUUVJsFFFFABRRRQAUUUUAX/AAhMbb4j6UQM/aI5IW+mM17HXieiTC18d6Bc
PgJ57RkntuHFe2kYJB7V7mEd6MT8q4jhy5lU87P8EJRUF5eW2nWct5eTpBbRDLyOcAVzdv8A
EPRZriJJoNQtLeZtsV3c25WJz257V0HiHb2HWT8KKLDq/IIIBBB4NFMCK8/4+GqCp7z/AI+G
qCkAVkeK/wDkTta/69HrXrK8UIX8I6yo6m0emhPY8Z0//kHW3/XNf5VZqtpxzptsf+ma/wAq
s185P4mftWG/gQ9F+QUUUVJuFFFFABRRRQAUUUUAV5f+QlpPr9ui/nXvsv8ArX/3jXz9qDGP
7JKv3o7qJh9d1fQBO5wx74Jr2cC/3XzPzTiuLWYX7xX6nm3jf+19f8UR6ZpNtHd2+iol5dW7
tgSuTwuO5x2rV8T+I4tZ8CpFY2kk1xrDfY7e0kTBjkH3sjtt9am8Kjd438YFuH8+IZ77doqs
viXXtU0zUtS0mytpI9N1Bo0h2Ze5hA+cqezd+K7VbqfLzclblV9dfQ0vhbNqENjqHhzVjnUN
IkWPcG3Bo2BK4PcCiqfw61q18QfEjxFqOniUW0lnApEq7WDjggj86KRZ215/x8NUFT3Y/wBI
aocGkAlZniP/AJFXV/8Ar0k/lWpg1k+KZEg8I6xJIcKLR8nr14poTPGNM/5Blt/1zFWqq6aC
NNtgf+eY/lVqvnKnxM/acJ/Ah6L8goooqToCiiigAooooAKKKKAKOrg/2bK6/fjxIv1BzXvG
n3IvdKsroEHzreN8j1KjNeJugkRkYZVhgiuj8CeLv7Hkg8M6qWMLMRY3KjJAJ+4w6/jXp4Co
rOD3PheLsFNyhiorS1n5a6fmTeMtbl8F+L7q8tYBMdcsRFtLY2Sg7Q1dl4a0xPCnhG1truVI
xbRGa5lJwAx+ZjmrmraJput2xttUso7lBnbu+8h9VPY1z8fw/tS6R32sapf6fGQY7G4l/djH
QH1FekfElv4Z2299b8R+R5A1e68yBNuMRDIBx79aK67T1ChlVQqqAFVRgAegooA//9k=</binary></Content>
							<bool name="archivable">true</bool>
						</Properties>
					</Item>
				</Item>
				<Item class="Part" referent="RBX592">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">26</int>
						<CoordinateFrame name="CFrame">
							<X>62.5</X>
							<Y>3.29579186</Y>
							<Z>41.5</Z>
							<R00>-1</R00>
							<R01>-3.52055824e-021</R01>
							<R02>-2.5592278e-019</R02>
							<R10>-3.52055824e-021</R10>
							<R11>1</R11>
							<R12>4.83187094e-021</R12>
							<R20>2.5592278e-019</R20>
							<R21>4.83187094e-021</R21>
							<R22>-1</R22>
						</CoordinateFrame>
						<bool name="CanCollide">false</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">0</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">false</bool>
						<string name="Name">Left Arm</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>-1</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>1</X>
							<Y>2</Y>
							<Z>1</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX593">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">26</int>
						<CoordinateFrame name="CFrame">
							<X>59.5</X>
							<Y>3.29579186</Y>
							<Z>41.5</Z>
							<R00>-1</R00>
							<R01>-3.52055824e-021</R01>
							<R02>-2.5592278e-019</R02>
							<R10>-3.52055824e-021</R10>
							<R11>1</R11>
							<R12>4.83187094e-021</R12>
							<R20>2.5592278e-019</R20>
							<R21>4.83187094e-021</R21>
							<R22>-1</R22>
						</CoordinateFrame>
						<bool name="CanCollide">false</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">0</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">false</bool>
						<string name="Name">Right Arm</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>-1</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>1</X>
							<Y>2</Y>
							<Z>1</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX594">
					<Properties>
						<bool name="Anchored">false</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">26</int>
						<CoordinateFrame name="CFrame">
							<X>61.5</X>
							<Y>1.29579186</Y>
							<Z>41.5</Z>
							<R00>-1</R00>
							<R01>-3.52055824e-021</R01>
							<R02>-2.5592278e-019</R02>
							<R10>-3.52055824e-021</R10>
							<R11>1</R11>
							<R12>4.83187094e-021</R12>
							<R20>2.5592278e-019</R20>
							<R21>4.83187094e-021</R21>
							<R22>-1</R22>
						</CoordinateFrame>
						<bool name="CanCollide">false</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">0</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">false</bool>
						<string name="Name">Left Leg</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>-1</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>1</X>
							<Y>2</Y>
							<Z>1</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX595">
					<Properties>
						<bool name="Anchored">false</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">26</int>
						<CoordinateFrame name="CFrame">
							<X>60.5</X>
							<Y>1.29579186</Y>
							<Z>41.5</Z>
							<R00>-1</R00>
							<R01>-3.52055824e-021</R01>
							<R02>-2.5592278e-019</R02>
							<R10>-3.52055824e-021</R10>
							<R11>1</R11>
							<R12>4.83187094e-021</R12>
							<R20>2.5592278e-019</R20>
							<R21>4.83187094e-021</R21>
							<R22>-1</R22>
						</CoordinateFrame>
						<bool name="CanCollide">false</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">0</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">false</bool>
						<string name="Name">Right Leg</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>-1</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>1</X>
							<Y>2</Y>
							<Z>1</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Humanoid" referent="RBX596">
					<Properties>
						<float name="Health">100</float>
						<bool name="Jump">false</bool>
						<float name="MaxHealth">100</float>
						<string name="Name">Humanoid</string>
						<bool name="Sit">false</bool>
						<bool name="Strafe">false</bool>
						<Vector3 name="TargetPoint">
							<X>0</X>
							<Y>0</Y>
							<Z>0</Z>
						</Vector3>
						<Vector3 name="WalkDirection">
							<X>0</X>
							<Y>0</Y>
							<Z>0</Z>
						</Vector3>
						<float name="WalkRotationalVelocity">0</float>
						<Ref name="WalkToPart">null</Ref>
						<Vector3 name="WalkToPoint">
							<X>0</X>
							<Y>0</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX597">
					<Properties>
						<bool name="Anchored">false</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">2</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>61</X>
							<Y>5.49579144</Y>
							<Z>41.5</Z>
							<R00>-1</R00>
							<R01>-3.52055824e-021</R01>
							<R02>-2.5592278e-019</R02>
							<R10>-3.52055824e-021</R10>
							<R11>1</R11>
							<R12>4.83187094e-021</R12>
							<R20>2.5592278e-019</R20>
							<R21>4.83187094e-021</R21>
							<R22>-1</R22>
						</CoordinateFrame>
						<bool name="CanCollide">false</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">false</bool>
						<string name="Name">Handle</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">0</token>
						<token name="TopSurfaceInput">0</token>
						<float name="Transparency">0</float>
						<Vector3 name="Velocity">
							<X>0</X>
							<Y>-1</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>0.400000006</Y>
							<Z>1</Z>
						</Vector3>
					</Properties>
					<Item class="SpecialMesh" referent="RBX598">
						<Properties>
							<Content name="MeshId"><url>http://www.roblox.com/asset/?id=1374148</url></Content>
							<token name="MeshType">5</token>
							<string name="Name">Mesh</string>
							<Vector3 name="Scale">
								<X>1</X>
								<Y>1</Y>
								<Z>1</Z>
							</Vector3>
							<Content name="TextureId"><null></null></Content>
							<Vector3 name="VertexColor">
								<X>1</X>
								<Y>1</Y>
								<Z>1</Z>
							</Vector3>
							<bool name="archivable">true</bool>
						</Properties>
					</Item>
				</Item>
			</Item>
		</Item>
		<Item class="Model" referent="RBX599">
			<Properties>
				<token name="Controller">0</token>
				<bool name="ControllerFlagShown">true</bool>
				<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">starwolf</string>
				<Ref name="PrimaryPart">null</Ref>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Model" referent="RBX600">
				<Properties>
					<token name="Controller">0</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Model</string>
					<Ref name="PrimaryPart">null</Ref>
					<bool name="archivable">true</bool>
				</Properties>
				<Item class="Model" referent="RBX601">
					<Properties>
						<token name="Controller">7</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">starwolf</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Humanoid" referent="RBX602">
						<Properties>
							<float name="Health">0</float>
							<bool name="Jump">false</bool>
							<float name="MaxHealth">100</float>
							<string name="Name">Humanoid</string>
							<bool name="Sit">false</bool>
							<bool name="Strafe">false</bool>
							<Vector3 name="TargetPoint">
								<X>0</X>
								<Y>0</Y>
								<Z>0</Z>
							</Vector3>
							<Vector3 name="WalkDirection">
								<X>0</X>
								<Y>0</Y>
								<Z>0</Z>
							</Vector3>
							<float name="WalkRotationalVelocity">0</float>
							<Ref name="WalkToPart">null</Ref>
							<Vector3 name="WalkToPoint">
								<X>0</X>
								<Y>0</Y>
								<Z>0</Z>
							</Vector3>
							<bool name="archivable">true</bool>
						</Properties>
					</Item>
				</Item>
			</Item>
		</Item>
		<Item class="Model" referent="RBX603">
			<Properties>
				<token name="Controller">0</token>
				<bool name="ControllerFlagShown">true</bool>
				<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">Model</string>
				<Ref name="PrimaryPart">RBX604</Ref>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Part" referent="RBX605">
				<Properties>
					<bool name="Anchored">true</bool>
					<float name="BackParamA">-0.5</float>
					<float name="BackParamB">0.5</float>
					<token name="BackSurface">2</token>
					<token name="BackSurfaceInput">0</token>
					<float name="BottomParamA">-0.5</float>
					<float name="BottomParamB">0.5</float>
					<token name="BottomSurface">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">23</int>
					<CoordinateFrame name="CFrame">
						<X>46.177124</X>
						<Y>8.28822899</Y>
						<Z>110.859802</Z>
						<R00>-0.0218106136</R00>
						<R01>-1.09063376e-005</R01>
						<R02>-0.999763012</R02>
						<R10>5.20607728e-006</R10>
						<R11>1</R11>
						<R12>-1.10225183e-005</R12>
						<R20>0.999763012</R20>
						<R21>-5.44524073e-006</R21>
						<R22>-0.0218106136</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">false</bool>
					<string name="Name">Smooth Block Model</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">0</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>3</X>
						<Y>7.20000029</Y>
						<Z>16</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX606">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX607">
				<Properties>
					<bool name="Anchored">true</bool>
					<float name="BackParamA">-0.5</float>
					<float name="BackParamB">0.5</float>
					<token name="BackSurface">2</token>
					<token name="BackSurfaceInput">0</token>
					<float name="BottomParamA">-0.5</float>
					<float name="BottomParamB">0.5</float>
					<token name="BottomSurface">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">23</int>
					<CoordinateFrame name="CFrame">
						<X>46.3734207</X>
						<Y>8.08817768</Y>
						<Z>101.861938</Z>
						<R00>-0.0218105949</R00>
						<R01>-1.09063385e-005</R01>
						<R02>-0.999762177</R02>
						<R10>5.20607273e-006</R10>
						<R11>1</R11>
						<R12>-1.10225083e-005</R12>
						<R20>0.999762177</R20>
						<R21>-5.44524119e-006</R21>
						<R22>-0.0218105949</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">false</bool>
					<string name="Name">Smooth Block Model</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.000847632124</X>
						<Y>0.00049094687</Y>
						<Z>-0.00192241569</Z>
					</Vector3>
					<float name="TopParamA">-0.5</float>
					<float name="TopParamB">0.5</float>
					<token name="TopSurface">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0</float>
					<Vector3 name="Velocity">
						<X>-0.0107972948</X>
						<Y>0.0148061393</Y>
						<Z>0.00948020164</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>3</X>
						<Y>7.20000029</Y>
						<Z>16</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX608">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX609">
				<Properties>
					<bool name="Anchored">false</bool>
					<float name="BackParamA">-0.5</float>
					<float name="BackParamB">0.5</float>
					<token name="BackSurface">2</token>
					<token name="BackSurfaceInput">0</token>
					<float name="BottomParamA">-0.5</float>
					<float name="BottomParamB">0.5</float>
					<token name="BottomSurface">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">26</int>
					<CoordinateFrame name="CFrame">
						<X>46.7751465</X>
						<Y>9.2882061</Y>
						<Z>106.371765</Z>
						<R00>-0.0218105949</R00>
						<R01>-1.09063385e-005</R01>
						<R02>-0.999762177</R02>
						<R10>5.20607273e-006</R10>
						<R11>1</R11>
						<R12>-1.10225083e-005</R12>
						<R20>0.999762177</R20>
						<R21>-5.44524119e-006</R21>
						<R22>-0.0218105949</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">false</bool>
					<string name="Name">Smooth Block Model</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.000847632124</X>
						<Y>0.00049094687</Y>
						<Z>-0.00192241569</Z>
					</Vector3>
					<float name="TopParamA">-0.5</float>
					<float name="TopParamB">0.5</float>
					<token name="TopSurface">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0</float>
					<Vector3 name="Velocity">
						<X>-0.00627625454</X>
						<Y>0.0102111818</Y>
						<Z>0.0103001585</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>6</X>
						<Y>2.4000001</Y>
						<Z>3</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX610">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Model" referent="RBX611">
				<Properties>
					<token name="Controller">0</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Landmaster</string>
					<Ref name="PrimaryPart">RBX604</Ref>
					<bool name="archivable">true</bool>
				</Properties>
				<Item class="Part" referent="RBX612">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>52.3720398</X>
							<Y>3.88824368</Y>
							<Z>101.992821</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0188070573</X>
							<Y>0.00316335936</Y>
							<Z>0.00297519984</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX613">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>52.44841</X>
							<Y>2.88326788</Y>
							<Z>98.4936523</Z>
							<R00>-0.0218130313</R00>
							<R01>-0.190715164</R01>
							<R02>0.981403053</R02>
							<R10>0.00117117492</R10>
							<R11>-0.981640816</R11>
							<R12>-0.190735325</R12>
							<R20>0.999761403</R20>
							<R21>-0.00301111722</R21>
							<R22>0.0216358751</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX614">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>57.2726669</X>
							<Y>7.08832169</Y>
							<Z>106.6008</Z>
							<R00>-0.999762177</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.0218105949</R02>
							<R10>-1.10225083e-005</R10>
							<R11>1</R11>
							<R12>-5.20607273e-006</R12>
							<R20>-0.0218105949</R20>
							<R21>-5.44524119e-006</R21>
							<R22>-0.999762177</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">0</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">2</token>
						<token name="LeftSurfaceInput">0</token>
						<bool name="Locked">false</bool>
						<string name="Name">Smooth Block Model</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.5</float>
						<float name="RightParamB">0.5</float>
						<token name="RightSurface">2</token>
						<token name="RightSurfaceInput">0</token>
						<Vector3 name="RotVelocity">
							<X>0.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</Z>
						</Vector3>
						<float name="TopParamA">-0.5</float>
						<float name="TopParamB">0.5</float>
						<token name="TopSurface">0</token>
						<token name="TopSurfaceInput">0</token>
						<float name="Transparency">0</float>
						<Vector3 name="Velocity">
							<X>-0.0103929043</X>
							<Y>-0.0101635531</Y>
							<Z>0.0032817414</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">2</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>2</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX615">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">26</int>
						<CoordinateFrame name="CFrame">
							<X>55.2731438</X>
							<Y>7.08829975</Y>
							<Z>106.557175</Z>
							<R00>-0.999762177</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.0218105949</R02>
							<R10>-1.10225083e-005</R10>
							<R11>1</R11>
							<R12>-5.20607273e-006</R12>
							<R20>-0.0218105949</R20>
							<R21>-5.44524119e-006</R21>
							<R22>-0.999762177</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">0</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">2</token>
						<token name="LeftSurfaceInput">0</token>
						<bool name="Locked">false</bool>
						<string name="Name">Smooth Block Model</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.5</float>
						<float name="RightParamB">0.5</float>
						<token name="RightSurface">2</token>
						<token name="RightSurfaceInput">0</token>
						<Vector3 name="RotVelocity">
							<X>0.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</Z>
						</Vector3>
						<float name="TopParamA">-0.5</float>
						<float name="TopParamB">0.5</float>
						<token name="TopSurface">0</token>
						<token name="TopSurfaceInput">0</token>
						<float name="Transparency">0</float>
						<Vector3 name="Velocity">
							<X>-0.0104143638</X>
							<Y>-0.00628266018</Y>
							<Z>0.00426338241</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">2</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>2</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX616">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>48.3729897</X>
							<Y>3.88819957</Y>
							<Z>101.905579</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0188499726</X>
							<Y>0.0109251449</Y>
							<Z>0.0049384837</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX617">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>46.7751656</X>
							<Y>7.48820639</Y>
							<Z>106.371773</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.00973659847</X>
							<Y>0.010211139</Y>
							<Z>0.00877441186</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>6</X>
							<Y>1.20000005</Y>
							<Z>3</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX618">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>44.7756653</X>
							<Y>5.08818436</Y>
							<Z>106.328163</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0143718487</X>
							<Y>0.0140919741</Y>
							<Z>0.00772172445</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>6</X>
							<Y>1.20000005</Y>
							<Z>7</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX619">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>40.1785965</X>
							<Y>3.88815832</Y>
							<Z>110.728951</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0145182451</X>
							<Y>0.0191992018</Y>
							<Z>0.00896146055</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX620">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>44.3739433</X>
							<Y>3.88815546</Y>
							<Z>101.818336</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.018892888</X>
							<Y>0.0186869241</Y>
							<Z>0.00690176571</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX621">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>42.2762375</X>
							<Y>7.4881568</Y>
							<Z>106.273621</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.00978488196</X>
							<Y>0.0189431459</Y>
							<Z>0.0109831039</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>6</X>
							<Y>1.20000005</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX622">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>42.4508057</X>
							<Y>2.88315654</Y>
							<Z>98.2755356</Z>
							<R00>-0.0218149126</R00>
							<R01>-0.456469834</R01>
							<R02>0.889471471</R02>
							<R10>0.00117145421</R10>
							<R11>-0.889694273</R11>
							<R12>-0.456555426</R12>
							<R20>0.999761343</R20>
							<R21>-0.00891772471</R21>
							<R22>0.019943295</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX623">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>39.7332191</X>
							<Y>6.28814077</Y>
							<Z>108.218636</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063603e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20609456e-006</R10>
							<R11>1</R11>
							<R12>1.10225319e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44526392e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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>2</X>
							<Y>1.20000005</Y>
							<Z>3</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX624">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>42.1018028</X>
							<Y>2.88314557</Y>
							<Z>114.271729</Z>
							<R00>0.0218127482</R00>
							<R01>0.538735628</R01>
							<R02>-0.842192411</R02>
							<R10>0.00117872027</R10>
							<R11>-0.842406094</R11>
							<R12>-0.538841784</R12>
							<R20>-0.999761343</R20>
							<R21>0.0107608829</R21>
							<R22>-0.0190101378</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX625">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">23</int>
						<CoordinateFrame name="CFrame">
							<X>49.2745743</X>
							<Y>7.08823395</Y>
							<Z>106.4263</Z>
							<R00>-0.999762177</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.0218105949</R02>
							<R10>-1.10225083e-005</R10>
							<R11>1</R11>
							<R12>-5.20607273e-006</R12>
							<R20>-0.0218105949</R20>
							<R21>-5.44524119e-006</R21>
							<R22>-0.999762177</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">0</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">2</token>
						<token name="LeftSurfaceInput">0</token>
						<bool name="Locked">false</bool>
						<string name="Name">Smooth Block Model</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.5</float>
						<float name="RightParamB">0.5</float>
						<token name="RightSurface">2</token>
						<token name="RightSurfaceInput">0</token>
						<Vector3 name="RotVelocity">
							<X>0.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</Z>
						</Vector3>
						<float name="TopParamA">-0.5</float>
						<float name="TopParamB">0.5</float>
						<token name="TopSurface">0</token>
						<token name="TopSurfaceInput">0</token>
						<float name="Transparency">0</float>
						<Vector3 name="Velocity">
							<X>-0.0104787424</X>
							<Y>0.00536001753</Y>
							<Z>0.00720830541</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">2</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>2</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX626">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>36.2776718</X>
							<Y>6.28809214</Y>
							<Z>106.142769</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063603e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20609456e-006</R10>
							<R11>1</R11>
							<R12>1.10225319e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44526392e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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>6</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX627">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">21</int>
						<CoordinateFrame name="CFrame">
							<X>37.7773285</X>
							<Y>5.08810854</Y>
							<Z>106.175491</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063603e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20609456e-006</R10>
							<R11>1</R11>
							<R12>1.10225319e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44526392e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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>6</X>
							<Y>1.20000005</Y>
							<Z>7</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX628">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>52.0994568</X>
							<Y>2.88325405</Y>
							<Z>114.489845</Z>
							<R00>0.0218002088</R00>
							<R01>0.673273623</R01>
							<R02>-0.739071906</R02>
							<R10>0.00118120259</R10>
							<R11>-0.739264369</R11>
							<R12>-0.673414171</R12>
							<R20>-0.999761641</R20>
							<R21>0.0138075603</R21>
							<R22>-0.0169113353</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX629">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>36.1795502</X>
							<Y>3.88811421</Y>
							<Z>110.641708</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0145611614</X>
							<Y>0.0269609801</Y>
							<Z>0.0109247426</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX630">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>47.449585</X>
							<Y>2.88321137</Y>
							<Z>98.384613</Z>
							<R00>-0.0218114275</R00>
							<R01>-0.388545692</R01>
							<R02>0.921171188</R02>
							<R10>0.00117173919</R10>
							<R11>-0.921399653</R11>
							<R12>-0.388614327</R12>
							<R20>0.999761343</R20>
							<R21>-0.00739687541</R21>
							<R22>0.0205524135</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX631">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>40.3748932</X>
							<Y>3.88811135</Y>
							<Z>101.731094</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0189358052</X>
							<Y>0.0264487099</Y>
							<Z>0.00886504911</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX632">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>48.1766968</X>
							<Y>3.88824654</Y>
							<Z>110.903435</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0144324126</X>
							<Y>0.00367562985</Y>
							<Z>0.00503489282</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX633">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>51.2741241</X>
							<Y>4.48825598</Y>
							<Z>106.46994</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0154555552</X>
							<Y>0.00147905934</Y>
							<Z>0.00402280781</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>6</X>
							<Y>2.4000001</Y>
							<Z>6</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Model" referent="RBX634">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Part</string>
						<Ref name="PrimaryPart">RBX604</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Part" referent="RBX604">
						<Properties>
							<bool name="Anchored">false</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">1</int>
							<CoordinateFrame name="CFrame">
								<X>44.2758141</X>
								<Y>2.08817887</Y>
								<Z>106.317276</Z>
								<R00>-0.0218105949</R00>
								<R01>-1.09063385e-005</R01>
								<R02>-0.999762177</R02>
								<R10>5.20607273e-006</R10>
								<R11>1</R11>
								<R12>-1.10225083e-005</R12>
								<R20>0.999762177</R20>
								<R21>-5.44524119e-006</R21>
								<R22>-0.0218105949</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">1</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">false</bool>
							<string name="Name">Engine</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.000847632124</X>
								<Y>0.00049094687</Y>
								<Z>-0.00192241569</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.0201444514</X>
								<Y>0.0150621235</Y>
								<Z>0.00542422384</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>12</X>
								<Y>2.4000001</Y>
								<Z>20</Z>
							</Vector3>
						</Properties>
						<Item class="BodyPosition" referent="RBX635">
							<Properties>
								<float name="D">1250</float>
								<string name="Name">BodyPosition</string>
								<float name="P">10000</float>
								<bool name="archivable">true</bool>
								<Vector3 name="maxForce">
									<X>0</X>
									<Y>0</Y>
									<Z>0</Z>
								</Vector3>
								<Vector3 name="position">
									<X>-1.5</X>
									<Y>3</Y>
									<Z>-48</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="BodyGyro" referent="RBX636">
							<Properties>
								<float name="D">500</float>
								<string name="Name">BodyGyro</string>
								<float name="P">3000</float>
								<bool name="archivable">true</bool>
								<CoordinateFrame name="cframe">
									<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>
								<Vector3 name="maxTorque">
									<X>0</X>
									<Y>0</Y>
									<Z>0</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="Script" referent="RBX637">
							<Properties>
								<bool name="Disabled">false</bool>
								<Content name="LinkedSource"><null></null></Content>
								<string name="Name">Script</string>
								<string name="Source">model = script.Parent.Parent.Parent
backup = model:clone()
local debounce = false

function onTouch(part)
	if (part.Name == &quot;Safe&quot;) and (debounce == false) and (script.Parent.Count.Value == 0) then
	debounce = true
	wait(5)
	model = backup:clone()
	model.Parent = game.Workspace
	model:makeJoints()
	script.Parent.Count.Value = 1
	debounce = false
	end
end 
script.Parent.Touched:connect(onTouch)
</string>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
						<Item class="IntValue" referent="RBX638">
							<Properties>
								<string name="Name">Count</string>
								<int name="Value">0</int>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
					</Item>
					<Item class="Seat" referent="RBX639">
						<Properties>
							<bool name="Anchored">false</bool>
							<float name="BackParamA">-0.5</float>
							<float name="BackParamB">0.5</float>
							<token name="BackSurface">2</token>
							<token name="BackSurfaceInput">0</token>
							<float name="BottomParamA">-0.5</float>
							<float name="BottomParamB">0.5</float>
							<token name="BottomSurface">2</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">26</int>
							<CoordinateFrame name="CFrame">
								<X>44.2757645</X>
								<Y>7.08817863</Y>
								<Z>106.317245</Z>
								<R00>-0.0218105949</R00>
								<R01>-1.09063385e-005</R01>
								<R02>-0.999762177</R02>
								<R10>5.20607273e-006</R10>
								<R11>1</R11>
								<R12>-1.10225083e-005</R12>
								<R20>0.999762177</R20>
								<R21>-5.44524119e-006</R21>
								<R22>-0.0218105949</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">2</token>
							<token name="FrontSurfaceInput">0</token>
							<float name="LeftParamA">-0.5</float>
							<float name="LeftParamB">0.5</float>
							<token name="LeftSurface">2</token>
							<token name="LeftSurfaceInput">0</token>
							<bool name="Locked">false</bool>
							<string name="Name">Seat</string>
							<float name="Reflectance">0</float>
							<float name="RightParamA">-0.5</float>
							<float name="RightParamB">0.5</float>
							<token name="RightSurface">2</token>
							<token name="RightSurfaceInput">0</token>
							<Vector3 name="RotVelocity">
								<X>0.000847632124</X>
								<Y>0.00049094687</Y>
								<Z>-0.00192241569</Z>
							</Vector3>
							<float name="TopParamA">-0.5</float>
							<float name="TopParamB">0.5</float>
							<token name="TopSurface">2</token>
							<token name="TopSurfaceInput">0</token>
							<float name="Transparency">0</float>
							<Vector3 name="Velocity">
								<X>-0.0105323885</X>
								<Y>0.0150622455</Y>
								<Z>0.00966240838</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>2</X>
								<Y>0.400000006</Y>
								<Z>2</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Seat" referent="RBX640">
						<Properties>
							<bool name="Anchored">false</bool>
							<float name="BackParamA">-0.5</float>
							<float name="BackParamB">0.5</float>
							<token name="BackSurface">2</token>
							<token name="BackSurfaceInput">0</token>
							<float name="BottomParamA">-0.5</float>
							<float name="BottomParamB">0.5</float>
							<token name="BottomSurface">2</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">26</int>
							<CoordinateFrame name="CFrame">
								<X>39.2769623</X>
								<Y>5.88812494</Y>
								<Z>106.208206</Z>
								<R00>-0.0218105949</R00>
								<R01>-1.09063603e-005</R01>
								<R02>-0.999762177</R02>
								<R10>5.20609456e-006</R10>
								<R11>1</R11>
								<R12>-1.10225319e-005</R12>
								<R20>0.999762177</R20>
								<R21>-5.44526392e-006</R21>
								<R22>-0.0218105949</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">2</token>
							<token name="FrontSurfaceInput">0</token>
							<float name="LeftParamA">-0.5</float>
							<float name="LeftParamB">0.5</float>
							<token name="LeftSurface">2</token>
							<token name="LeftSurfaceInput">0</token>
							<bool name="Locked">false</bool>
							<string name="Name">Seat</string>
							<float name="Reflectance">0</float>
							<float name="RightParamA">-0.5</float>
							<float name="RightParamB">0.5</float>
							<token name="RightSurface">2</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">2</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>2</X>
								<Y>0.400000006</Y>
								<Z>2</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX641">
						<Properties>
							<bool name="Anchored">false</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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">28</int>
							<CoordinateFrame name="CFrame">
								<X>42.2217026</X>
								<Y>8.28816986</Y>
								<Z>108.773018</Z>
								<R00>-0.0218105949</R00>
								<R01>-1.09063385e-005</R01>
								<R02>-0.999762177</R02>
								<R10>5.20607273e-006</R10>
								<R11>1</R11>
								<R12>-1.10225083e-005</R12>
								<R20>0.999762177</R20>
								<R21>-5.44524119e-006</R21>
								<R22>-0.0218105949</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">false</bool>
							<string name="Name">tur_start</string>
							<float name="Reflectance">0.300000012</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.000847632124</X>
								<Y>0.00049094687</Y>
								<Z>-0.00192241569</Z>
							</Vector3>
							<float name="TopParamA">-0.5</float>
							<float name="TopParamB">0.5</float>
							<token name="TopSurface">0</token>
							<token name="TopSurfaceInput">0</token>
							<float name="Transparency">0</float>
							<Vector3 name="Velocity">
								<X>-0.00701985322</X>
								<Y>0.016929416</Y>
								<Z>0.011687994</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>1</X>
								<Y>0.400000006</Y>
								<Z>2</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX642">
						<Properties>
							<bool name="Anchored">false</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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">21</int>
							<CoordinateFrame name="CFrame">
								<X>42.3307571</X>
								<Y>8.28814411</Y>
								<Z>103.774208</Z>
								<R00>-0.0218105949</R00>
								<R01>-1.09063385e-005</R01>
								<R02>-0.999762177</R02>
								<R10>5.20607273e-006</R10>
								<R11>1</R11>
								<R12>-1.10225083e-005</R12>
								<R20>0.999762177</R20>
								<R21>-5.44524119e-006</R21>
								<R22>-0.0218105949</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">false</bool>
							<string name="Name">tur_stop</string>
							<float name="Reflectance">0.300000012</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.000847632124</X>
								<Y>0.00049094687</Y>
								<Z>-0.00192241569</Z>
							</Vector3>
							<float name="TopParamA">-0.5</float>
							<float name="TopParamB">0.5</float>
							<token name="TopSurface">0</token>
							<token name="TopSurfaceInput">0</token>
							<float name="Transparency">0</float>
							<Vector3 name="Velocity">
								<X>-0.00947405212</X>
								<Y>0.0209569186</Y>
								<Z>0.0116344327</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>1</X>
								<Y>0.400000006</Y>
								<Z>2</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX643">
						<Properties>
							<bool name="Anchored">false</bool>
							<float name="BackParamA">-0.5</float>
							<float name="BackParamB">0.5</float>
							<token name="BackSurface">2</token>
							<token name="BackSurfaceInput">0</token>
							<float name="BottomParamA">-0.5</float>
							<float name="BottomParamB">0.5</float>
							<token name="BottomSurface">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">199</int>
							<CoordinateFrame name="CFrame">
								<X>59.2721901</X>
								<Y>7.08834362</Y>
								<Z>106.644424</Z>
								<R00>-0.0218105949</R00>
								<R01>-1.09063385e-005</R01>
								<R02>-0.999762177</R02>
								<R10>5.20607273e-006</R10>
								<R11>1</R11>
								<R12>-1.10225083e-005</R12>
								<R20>0.999762177</R20>
								<R21>-5.44524119e-006</R21>
								<R22>-0.0218105949</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">0</token>
							<float name="Friction">0.300000012</float>
							<float name="FrontParamA">0</float>
							<float name="FrontParamB">0</float>
							<token name="FrontSurface">6</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">false</bool>
							<string name="Name">Tip</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.000847632124</X>
								<Y>0.00049094687</Y>
								<Z>-0.00192241569</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.0103714447</X>
								<Y>-0.0140444459</Y>
								<Z>0.0023001004</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">2</token>
							<Vector3 name="size">
								<X>2</X>
								<Y>2</Y>
								<Z>2</Z>
							</Vector3>
						</Properties>
						<Item class="Script" referent="RBX644">
							<Properties>
								<bool name="Disabled">false</bool>
								<Content name="LinkedSource"><null></null></Content>
								<string name="Name">Script</string>
								<string name="Source">function createExplosion(position)

explosion = Instance.new(&quot;Explosion&quot;)
explosion.Position = position
explosion.BlastRadius = 12
explosion.Parent = game.Workspace

end

function onTouch(part)
	if (part.Name == &quot;Rocket&quot;) or (part.Name == &quot;Safe&quot;) or (part.Parent.Parent.Parent == script.Parent.Parent.Parent) or (part.Parent:findFirstChild(&quot;Humanoid&quot;)) then return end
	if (script.Parent.Velocity.x &lt; 50) or (script.Parent.Velocity.x &gt; -50) or (script.Parent.Velocity.z &lt; 50) or (script.Parent.Velocity.z &gt; -50) then
	createExplosion(script.Parent.Position)
	end
end

script.Parent.Touched:connect(onTouch)
</string>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
					</Item>
					<Item class="Part" referent="RBX645">
						<Properties>
							<bool name="Anchored">false</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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">1</int>
							<CoordinateFrame name="CFrame">
								<X>36.1795158</X>
								<Y>6.28811884</Y>
								<Z>110.641708</Z>
								<R00>0.0218106136</R00>
								<R01>-1.09063376e-005</R01>
								<R02>0.999763012</R02>
								<R10>-5.20607728e-006</R10>
								<R11>1</R11>
								<R12>1.10225183e-005</R12>
								<R20>-0.999763012</R20>
								<R21>-5.44524073e-006</R21>
								<R22>0.0218106136</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">1</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">false</bool>
							<string name="Name">SL</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>3</X>
								<Y>3.60000014</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
						<Item class="BodyPosition" referent="RBX646">
							<Properties>
								<float name="D">1250</float>
								<string name="Name">BodyPosition</string>
								<float name="P">10000</float>
								<bool name="archivable">true</bool>
								<Vector3 name="maxForce">
									<X>4000</X>
									<Y>4000</Y>
									<Z>4000</Z>
								</Vector3>
								<Vector3 name="position">
									<X>0</X>
									<Y>50</Y>
									<Z>0</Z>
								</Vector3>
							</Properties>
						</Item>
					</Item>
					<Item class="Part" referent="RBX647">
						<Properties>
							<bool name="Anchored">false</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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">1</int>
							<CoordinateFrame name="CFrame">
								<X>36.3758202</X>
								<Y>6.28806734</Y>
								<Z>101.643845</Z>
								<R00>0.0218105949</R00>
								<R01>-1.09063385e-005</R01>
								<R02>0.999762177</R02>
								<R10>-5.20607273e-006</R10>
								<R11>1</R11>
								<R12>1.10225083e-005</R12>
								<R20>-0.999762177</R20>
								<R21>-5.44524119e-006</R21>
								<R22>0.0218105949</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">1</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">false</bool>
							<string name="Name">SR</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.000847632124</X>
								<Y>0.00049094687</Y>
								<Z>-0.00192241569</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.014364928</X>
								<Y>0.0342105478</Y>
								<Z>0.0128626609</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>3</X>
								<Y>3.60000014</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
				</Item>
				<Item class="Part" referent="RBX648">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>47.1005707</X>
							<Y>2.88320184</Y>
							<Z>114.38076</Z>
							<R00>0.0218222104</R00>
							<R01>-0.306629807</R01>
							<R02>-0.951578617</R02>
							<R10>0.00118014205</R10>
							<R11>-0.951796651</R11>
							<R12>0.306727171</R12>
							<R20>-0.999761164</R20>
							<R21>-0.0078164516</R21>
							<R22>-0.0204083901</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX649">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">141</int>
						<CoordinateFrame name="CFrame">
							<X>44.7756767</X>
							<Y>3.88818455</Y>
							<Z>106.328171</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0166787431</X>
							<Y>0.0140919453</Y>
							<Z>0.00670456048</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>6</X>
							<Y>1.20000005</Y>
							<Z>7</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX650">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>44.7756538</X>
							<Y>6.28818417</Y>
							<Z>106.328156</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0120649543</X>
							<Y>0.014092003</Y>
							<Z>0.00873888843</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>6</X>
							<Y>1.20000005</Y>
							<Z>7</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX651">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>44.2321396</X>
							<Y>7.48818922</Y>
							<Z>108.316765</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.00878174417</X>
							<Y>0.013451254</Y>
							<Z>0.010022888</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>1.20000005</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX652">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>52.1757431</X>
							<Y>3.88829064</Y>
							<Z>110.990685</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0143894926</X>
							<Y>-0.00408615498</Y>
							<Z>0.00307161105</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX653">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>37.1029854</X>
							<Y>2.8830905</Y>
							<Z>114.162735</Z>
							<R00>0.0218124688</R00>
							<R01>0.613302886</R01>
							<R02>-0.78954649</R02>
							<R10>0.00118127209</R10>
							<R11>-0.789749563</R11>
							<R12>-0.613428056</R12>
							<R20>-0.999761343</R20>
							<R21>0.0124476813</R21>
							<R22>-0.0179507788</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX654">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">21</int>
						<CoordinateFrame name="CFrame">
							<X>37.7773399</X>
							<Y>3.8881073</Y>
							<Z>106.175499</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0167538449</X>
							<Y>0.0276750661</Y>
							<Z>0.0101403063</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>6</X>
							<Y>1.20000005</Y>
							<Z>7</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX655">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>44.3193817</X>
							<Y>7.48816824</Y>
							<Z>104.317719</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0107451035</X>
							<Y>0.0166732576</Y>
							<Z>0.00998003874</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>1.20000005</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX656">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">26</int>
						<CoordinateFrame name="CFrame">
							<X>51.2740974</X>
							<Y>7.08825588</Y>
							<Z>106.469925</Z>
							<R00>-0.999762177</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.0218105949</R02>
							<R10>-1.10225083e-005</R10>
							<R11>1</R11>
							<R12>-5.20607273e-006</R12>
							<R20>-0.0218105949</R20>
							<R21>-5.44524119e-006</R21>
							<R22>-0.999762177</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">0</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">2</token>
						<token name="LeftSurfaceInput">0</token>
						<bool name="Locked">false</bool>
						<string name="Name">Smooth Block Model</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.5</float>
						<float name="RightParamB">0.5</float>
						<token name="RightSurface">2</token>
						<token name="RightSurfaceInput">0</token>
						<Vector3 name="RotVelocity">
							<X>0.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</Z>
						</Vector3>
						<float name="TopParamA">-0.5</float>
						<float name="TopParamB">0.5</float>
						<token name="TopSurface">0</token>
						<token name="TopSurfaceInput">0</token>
						<float name="Transparency">0</float>
						<Vector3 name="Velocity">
							<X>-0.0104572829</X>
							<Y>0.001479125</Y>
							<Z>0.00622666441</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">2</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>2</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX657">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">26</int>
						<CoordinateFrame name="CFrame">
							<X>53.2736206</X>
							<Y>7.08827782</Y>
							<Z>106.51355</Z>
							<R00>-0.999762177</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.0218105949</R02>
							<R10>-1.10225083e-005</R10>
							<R11>1</R11>
							<R12>-5.20607273e-006</R12>
							<R20>-0.0218105949</R20>
							<R21>-5.44524119e-006</R21>
							<R22>-0.999762177</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">0</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">2</token>
						<token name="LeftSurfaceInput">0</token>
						<bool name="Locked">false</bool>
						<string name="Name">Smooth Block Model</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.5</float>
						<float name="RightParamB">0.5</float>
						<token name="RightSurface">2</token>
						<token name="RightSurfaceInput">0</token>
						<Vector3 name="RotVelocity">
							<X>0.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</Z>
						</Vector3>
						<float name="TopParamA">-0.5</float>
						<float name="TopParamB">0.5</float>
						<token name="TopSurface">0</token>
						<token name="TopSurfaceInput">0</token>
						<float name="Transparency">0</float>
						<Vector3 name="Velocity">
							<X>-0.0104358234</X>
							<Y>-0.00240176753</Y>
							<Z>0.00524502341</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">2</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>2</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX658">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>44.1776466</X>
							<Y>3.88820243</Y>
							<Z>110.816193</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0144753288</X>
							<Y>0.0114374161</Y>
							<Z>0.00699817669</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX659">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>36.375843</X>
							<Y>3.88806725</Y>
							<Z>101.643852</Z>
							<R00>0.0218105949</R00>
							<R01>-1.09063385e-005</R01>
							<R02>0.999762177</R02>
							<R10>-5.20607273e-006</R10>
							<R11>1</R11>
							<R12>1.10225083e-005</R12>
							<R20>-0.999762177</R20>
							<R21>-5.44524119e-006</R21>
							<R22>0.0218105949</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0189787205</X>
							<Y>0.0342104957</Y>
							<Z>0.010828333</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX660">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>37.4519119</X>
							<Y>2.88310289</Y>
							<Z>98.1665192</Z>
							<R00>-0.0218067467</R00>
							<R01>-0.422384948</R01>
							<R02>0.906154096</R02>
							<R10>0.00117227854</R10>
							<R11>-0.906379759</R11>
							<R12>-0.422461957</R12>
							<R20>0.999761462</R20>
							<R21>-0.0081502879</R21>
							<R22>0.0202605035</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX661">
				<Properties>
					<bool name="Anchored">true</bool>
					<float name="BackParamA">-0.5</float>
					<float name="BackParamB">0.5</float>
					<token name="BackSurface">2</token>
					<token name="BackSurfaceInput">0</token>
					<float name="BottomParamA">-0.5</float>
					<float name="BottomParamB">0.5</float>
					<token name="BottomSurface">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">1</int>
					<CoordinateFrame name="CFrame">
						<X>33.2783546</X>
						<Y>9.08805943</Y>
						<Z>106.077324</Z>
						<R00>0.0218105949</R00>
						<R01>-1.09063603e-005</R01>
						<R02>0.999762177</R02>
						<R10>-5.20609456e-006</R10>
						<R11>1</R11>
						<R12>1.10225319e-005</R12>
						<R20>-0.999762177</R20>
						<R21>-5.44526392e-006</R21>
						<R22>0.0218105949</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">false</bool>
					<string name="Name">Smooth Block Model</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">0</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>6</X>
						<Y>4.4000001</Y>
						<Z>10</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX662">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX663">
				<Properties>
					<bool name="Anchored">false</bool>
					<float name="BackParamA">-0.5</float>
					<float name="BackParamB">0.5</float>
					<token name="BackSurface">2</token>
					<token name="BackSurfaceInput">0</token>
					<float name="BottomParamA">-0.5</float>
					<float name="BottomParamB">0.5</float>
					<token name="BottomSurface">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">1</int>
					<CoordinateFrame name="CFrame">
						<X>31.2788677</X>
						<Y>5.68803692</Y>
						<Z>106.033722</Z>
						<R00>-0.0218105949</R00>
						<R01>1.09063603e-005</R01>
						<R02>0.999762177</R02>
						<R10>5.20609456e-006</R10>
						<R11>-1</R11>
						<R12>1.10225319e-005</R12>
						<R20>0.999762177</R20>
						<R21>5.44526392e-006</R21>
						<R22>0.0218105949</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">false</bool>
					<string name="Name">Smooth Block Model</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">0</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>6</X>
						<Y>2</Y>
						<Z>6</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX664">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Model" referent="RBX665">
				<Properties>
					<token name="Controller">0</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Model</string>
					<Ref name="PrimaryPart">null</Ref>
					<bool name="archivable">true</bool>
				</Properties>
				<Item class="Model" referent="RBX666">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Model</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX667">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Model</string>
							<Ref name="PrimaryPart">null</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Model" referent="RBX668">
							<Properties>
								<token name="Controller">0</token>
								<bool name="ControllerFlagShown">true</bool>
								<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">Model</string>
								<Ref name="PrimaryPart">null</Ref>
								<bool name="archivable">true</bool>
							</Properties>
							<Item class="Model" referent="RBX669">
								<Properties>
									<token name="Controller">0</token>
									<bool name="ControllerFlagShown">true</bool>
									<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">Model</string>
									<Ref name="PrimaryPart">null</Ref>
									<bool name="archivable">true</bool>
								</Properties>
								<Item class="Model" referent="RBX670">
									<Properties>
										<token name="Controller">0</token>
										<bool name="ControllerFlagShown">true</bool>
										<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">Model</string>
										<Ref name="PrimaryPart">null</Ref>
										<bool name="archivable">true</bool>
									</Properties>
									<Item class="Model" referent="RBX671">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX672">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX673">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX674">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX675">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX676">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX677">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX678">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX679">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX680">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX681">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX682">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX683">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX684">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX685">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX686">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX687">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX688">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX689">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX690">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX691">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX692">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX693">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX694">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX695">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX696">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX697">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX698">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX699">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX700">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX701">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX702">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX703">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX704">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX705">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX706">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX707">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX708">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX709">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX710">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX711">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX712">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX713">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX714">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX715">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX716">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX717">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX718">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX719">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX720">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX721">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX722">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX723">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX724">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX725">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX726">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX727">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX728">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX729">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX730">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX731">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX732">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX733">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX734">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX735">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX736">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX737">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX738">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX739">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX740">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX741">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX742">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX743">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX744">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX745">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX746">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX747">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX748">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX749">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX750">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX751">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX752">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX753">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX754">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX755">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX756">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX757">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX758">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX759">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX760">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX761">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX762">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX763">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX764">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX765">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX766">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX767">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX768">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX769">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX770">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX771">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX772">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX773">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX774">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX775">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX776">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX777">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX778">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX779">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX780">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX781">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX782">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX783">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX784">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX785">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX786">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX787">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX788">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX789">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX790">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX791">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX792">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX793">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX794">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX795">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX796">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX797">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX798">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX799">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX800">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX801">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX802">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX803">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX804">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX805">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX806">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX807">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX808">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX809">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX810">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX811">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX812">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX813">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX814">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX815">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX816">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX817">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX818">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX819">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX820">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX821">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX822">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX823">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX824">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX825">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX826">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX827">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX828">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX829">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX830">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX831">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX832">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX833">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX834">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX835">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX836">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX837">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX838">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX839">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX840">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX841">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX842">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX843">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX844">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX845">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX846">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX847">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX848">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX849">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX850">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX851">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX852">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX853">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX854">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX855">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX856">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX857">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX858">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX859">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX860">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX861">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX862">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX863">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX864">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX865">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX866">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX867">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX868">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX869">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX870">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX871">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX872">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX873">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX874">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX875">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX876">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX877">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX878">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX879">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX880">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX881">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX882">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX883">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX884">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX885">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX886">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX887">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX888">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX889">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX890">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX891">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX892">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX893">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX894">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX895">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX896">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX897">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX898">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX899">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX900">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX901">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX902">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX903">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX904">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX905">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX906">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX907">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX908">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX909">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX910">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX911">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX912">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX913">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX914">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX915">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX916">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX917">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX918">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX919">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX920">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX921">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX922">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX923">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX924">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX925">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX926">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX927">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX928">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX929">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX930">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX931">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX932">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX933">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX934">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX935">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX936">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX937">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX938">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX939">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX940">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX941">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX942">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX943">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX944">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX945">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX946">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX947">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX948">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX949">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX950">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX951">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX952">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX953">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX954">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX955">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX956">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX957">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX958">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX959">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX960">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX961">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX962">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX963">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX964">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX965">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX966">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX967">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX968">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX969">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX970">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX971">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX972">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX973">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX974">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX975">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX976">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX977">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX978">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX979">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX980">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX981">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX982">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX983">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX984">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX985">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX986">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX987">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX988">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX989">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX990">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX991">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX992">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX993">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX994">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX995">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX996">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX997">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX998">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX999">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1000">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1001">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1002">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1003">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1004">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1005">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1006">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1007">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1008">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1009">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1010">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1011">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1012">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1013">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1014">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1015">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1016">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1017">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1018">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1019">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1020">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1021">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1022">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1023">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1024">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1025">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1026">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1027">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1028">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1029">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1030">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1031">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1032">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1033">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1034">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1035">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1036">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1037">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1038">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1039">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1040">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1041">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1042">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1043">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1044">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1045">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1046">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1047">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1048">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1049">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1050">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1051">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1052">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1053">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1054">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1055">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1056">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1057">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1058">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1059">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1060">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1061">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1062">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1063">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1064">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1065">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1066">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1067">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1068">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1069">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1070">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1071">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1072">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1073">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1074">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1075">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1076">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1077">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1078">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1079">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1080">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1081">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1082">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1083">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1084">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1085">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
									</Item>
								</Item>
							</Item>
						</Item>
					</Item>
				</Item>
				<Item class="Model" referent="RBX1086">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Model</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX1087">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Model</string>
							<Ref name="PrimaryPart">null</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Model" referent="RBX1088">
							<Properties>
								<token name="Controller">0</token>
								<bool name="ControllerFlagShown">true</bool>
								<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">Model</string>
								<Ref name="PrimaryPart">null</Ref>
								<bool name="archivable">true</bool>
							</Properties>
							<Item class="Model" referent="RBX1089">
								<Properties>
									<token name="Controller">0</token>
									<bool name="ControllerFlagShown">true</bool>
									<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">Model</string>
									<Ref name="PrimaryPart">null</Ref>
									<bool name="archivable">true</bool>
								</Properties>
								<Item class="Model" referent="RBX1090">
									<Properties>
										<token name="Controller">0</token>
										<bool name="ControllerFlagShown">true</bool>
										<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">Model</string>
										<Ref name="PrimaryPart">null</Ref>
										<bool name="archivable">true</bool>
									</Properties>
									<Item class="Model" referent="RBX1091">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1092">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1093">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1094">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1095">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1096">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1097">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1098">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1099">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1100">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1101">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1102">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1103">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1104">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1105">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1106">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1107">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1108">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1109">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1110">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1111">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1112">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1113">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1114">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1115">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1116">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1117">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1118">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1119">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1120">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1121">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1122">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1123">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1124">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1125">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1126">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1127">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1128">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1129">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1130">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1131">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1132">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1133">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1134">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1135">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1136">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1137">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1138">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1139">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1140">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1141">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1142">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1143">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1144">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1145">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1146">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1147">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1148">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1149">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1150">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1151">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1152">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1153">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1154">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1155">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1156">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1157">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1158">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1159">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1160">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1161">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1162">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1163">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1164">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1165">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1166">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1167">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1168">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1169">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1170">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1171">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1172">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1173">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1174">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1175">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1176">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1177">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1178">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1179">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1180">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1181">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1182">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1183">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1184">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1185">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1186">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1187">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1188">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1189">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1190">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1191">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1192">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1193">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1194">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1195">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1196">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1197">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1198">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1199">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1200">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1201">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1202">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1203">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1204">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1205">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1206">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1207">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1208">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1209">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1210">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1211">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1212">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1213">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1214">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1215">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1216">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1217">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1218">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1219">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1220">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1221">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1222">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1223">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1224">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1225">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1226">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1227">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1228">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1229">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1230">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1231">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1232">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1233">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1234">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1235">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1236">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1237">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1238">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1239">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1240">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1241">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1242">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1243">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1244">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1245">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1246">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1247">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1248">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1249">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1250">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1251">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1252">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1253">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1254">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1255">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1256">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1257">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1258">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1259">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1260">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1261">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1262">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1263">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1264">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1265">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1266">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1267">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1268">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1269">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1270">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1271">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1272">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1273">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1274">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1275">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1276">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1277">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1278">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1279">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1280">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1281">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1282">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1283">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1284">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1285">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1286">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1287">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1288">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1289">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1290">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1291">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1292">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1293">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1294">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1295">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1296">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1297">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1298">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1299">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1300">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1301">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1302">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1303">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1304">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1305">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1306">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1307">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1308">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1309">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1310">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1311">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1312">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1313">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1314">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1315">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1316">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1317">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1318">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1319">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1320">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1321">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1322">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1323">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1324">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1325">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1326">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1327">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1328">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1329">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1330">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1331">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1332">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1333">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1334">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1335">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1336">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1337">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1338">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1339">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1340">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1341">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1342">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1343">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1344">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1345">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1346">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1347">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1348">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1349">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1350">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1351">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1352">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1353">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1354">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1355">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1356">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1357">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1358">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1359">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1360">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1361">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1362">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1363">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1364">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1365">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1366">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1367">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1368">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1369">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1370">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1371">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1372">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1373">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1374">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1375">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1376">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1377">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1378">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1379">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1380">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1381">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1382">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1383">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1384">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1385">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1386">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1387">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1388">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1389">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1390">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1391">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1392">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1393">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1394">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1395">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1396">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1397">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1398">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1399">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1400">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1401">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1402">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1403">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1404">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1405">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1406">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1407">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1408">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1409">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1410">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1411">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1412">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1413">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1414">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1415">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1416">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1417">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1418">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1419">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1420">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1421">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1422">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1423">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1424">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1425">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1426">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1427">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1428">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1429">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1430">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1431">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1432">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1433">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1434">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1435">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1436">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1437">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1438">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1439">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1440">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1441">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1442">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1443">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1444">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1445">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1446">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1447">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1448">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1449">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1450">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1451">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1452">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1453">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1454">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1455">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1456">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1457">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1458">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1459">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1460">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1461">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1462">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1463">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1464">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1465">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1466">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1467">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1468">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1469">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1470">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1471">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1472">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1473">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1474">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1475">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1476">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1477">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1478">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1479">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1480">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1481">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1482">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1483">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1484">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1485">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1486">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1487">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1488">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1489">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1490">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1491">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1492">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1493">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1494">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1495">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1496">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1497">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1498">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1499">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1500">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1501">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1502">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1503">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1504">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1505">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
									</Item>
								</Item>
							</Item>
						</Item>
					</Item>
				</Item>
				<Item class="Model" referent="RBX1506">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Model</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX1507">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Model</string>
							<Ref name="PrimaryPart">null</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Model" referent="RBX1508">
							<Properties>
								<token name="Controller">0</token>
								<bool name="ControllerFlagShown">true</bool>
								<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">Model</string>
								<Ref name="PrimaryPart">null</Ref>
								<bool name="archivable">true</bool>
							</Properties>
							<Item class="Model" referent="RBX1509">
								<Properties>
									<token name="Controller">0</token>
									<bool name="ControllerFlagShown">true</bool>
									<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">Model</string>
									<Ref name="PrimaryPart">null</Ref>
									<bool name="archivable">true</bool>
								</Properties>
								<Item class="Model" referent="RBX1510">
									<Properties>
										<token name="Controller">0</token>
										<bool name="ControllerFlagShown">true</bool>
										<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">Model</string>
										<Ref name="PrimaryPart">null</Ref>
										<bool name="archivable">true</bool>
									</Properties>
									<Item class="Model" referent="RBX1511">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1512">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1513">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1514">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1515">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1516">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1517">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1518">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1519">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1520">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1521">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1522">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1523">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1524">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1525">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1526">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1527">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1528">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1529">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1530">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1531">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1532">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1533">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1534">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1535">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1536">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1537">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1538">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1539">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1540">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1541">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1542">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1543">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1544">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1545">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1546">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1547">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1548">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1549">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1550">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1551">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1552">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1553">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1554">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1555">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1556">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1557">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1558">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1559">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1560">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1561">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1562">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1563">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1564">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1565">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1566">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1567">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1568">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1569">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1570">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1571">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1572">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1573">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1574">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1575">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1576">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1577">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1578">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1579">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1580">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1581">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1582">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1583">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1584">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1585">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1586">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1587">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1588">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1589">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1590">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1591">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1592">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1593">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1594">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1595">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1596">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1597">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1598">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1599">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1600">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1601">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1602">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1603">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1604">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1605">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1606">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1607">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1608">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1609">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1610">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1611">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1612">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1613">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1614">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1615">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1616">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1617">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1618">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1619">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1620">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1621">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1622">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1623">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1624">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1625">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1626">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1627">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1628">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1629">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1630">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1631">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1632">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1633">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1634">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1635">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1636">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1637">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1638">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1639">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1640">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1641">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1642">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1643">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1644">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1645">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1646">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1647">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1648">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1649">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1650">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1651">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1652">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1653">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1654">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1655">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1656">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1657">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1658">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1659">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1660">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1661">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1662">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1663">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1664">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1665">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1666">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1667">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1668">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1669">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1670">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1671">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1672">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1673">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1674">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1675">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1676">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1677">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1678">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1679">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1680">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1681">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1682">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1683">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1684">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1685">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1686">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1687">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1688">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1689">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1690">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1691">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1692">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1693">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1694">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1695">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1696">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1697">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1698">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1699">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1700">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1701">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1702">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1703">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1704">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1705">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1706">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1707">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1708">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1709">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1710">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1711">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1712">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1713">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1714">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1715">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1716">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1717">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1718">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1719">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1720">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1721">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1722">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1723">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1724">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1725">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1726">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1727">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1728">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1729">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1730">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1731">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1732">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1733">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1734">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1735">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1736">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1737">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1738">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1739">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1740">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1741">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1742">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1743">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1744">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1745">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1746">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1747">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1748">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1749">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1750">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1751">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1752">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1753">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1754">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1755">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1756">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1757">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1758">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1759">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1760">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1761">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1762">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1763">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1764">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1765">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1766">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1767">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1768">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1769">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1770">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1771">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1772">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1773">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1774">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1775">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1776">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1777">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1778">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1779">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1780">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1781">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1782">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1783">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1784">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1785">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1786">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1787">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1788">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1789">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1790">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1791">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1792">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1793">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1794">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1795">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1796">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1797">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1798">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1799">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1800">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1801">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1802">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1803">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1804">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1805">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1806">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1807">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1808">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1809">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1810">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1811">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1812">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1813">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1814">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1815">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1816">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1817">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1818">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1819">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1820">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1821">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1822">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1823">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1824">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1825">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1826">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1827">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1828">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1829">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1830">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1831">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1832">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1833">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1834">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1835">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1836">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1837">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1838">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1839">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1840">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1841">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1842">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1843">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1844">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1845">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1846">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1847">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1848">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1849">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1850">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1851">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1852">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1853">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1854">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1855">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1856">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1857">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1858">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1859">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1860">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1861">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1862">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1863">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1864">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1865">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1866">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1867">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1868">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1869">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1870">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1871">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1872">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1873">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1874">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1875">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1876">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1877">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1878">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1879">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1880">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1881">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1882">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1883">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1884">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1885">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1886">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1887">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1888">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1889">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1890">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1891">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1892">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1893">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1894">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1895">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1896">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1897">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1898">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1899">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1900">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1901">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1902">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1903">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1904">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1905">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1906">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1907">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1908">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1909">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1910">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1911">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1912">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1913">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1914">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1915">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1916">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1917">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1918">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1919">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1920">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1921">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1922">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1923">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1924">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX1925">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
									</Item>
								</Item>
							</Item>
						</Item>
					</Item>
				</Item>
				<Item class="Model" referent="RBX1926">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Model</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX1927">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Model</string>
							<Ref name="PrimaryPart">null</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Model" referent="RBX1928">
							<Properties>
								<token name="Controller">0</token>
								<bool name="ControllerFlagShown">true</bool>
								<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">Model</string>
								<Ref name="PrimaryPart">null</Ref>
								<bool name="archivable">true</bool>
							</Properties>
							<Item class="Model" referent="RBX1929">
								<Properties>
									<token name="Controller">0</token>
									<bool name="ControllerFlagShown">true</bool>
									<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">Model</string>
									<Ref name="PrimaryPart">null</Ref>
									<bool name="archivable">true</bool>
								</Properties>
								<Item class="Model" referent="RBX1930">
									<Properties>
										<token name="Controller">0</token>
										<bool name="ControllerFlagShown">true</bool>
										<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">Model</string>
										<Ref name="PrimaryPart">null</Ref>
										<bool name="archivable">true</bool>
									</Properties>
									<Item class="Model" referent="RBX1931">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1932">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1933">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1934">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1935">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1936">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1937">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1938">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1939">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1940">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1941">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1942">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1943">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1944">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1945">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1946">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1947">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1948">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1949">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1950">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1951">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1952">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1953">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1954">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1955">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1956">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1957">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1958">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1959">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1960">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1961">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1962">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1963">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1964">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1965">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1966">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1967">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1968">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1969">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1970">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1971">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1972">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1973">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1974">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1975">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1976">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1977">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1978">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1979">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1980">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1981">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1982">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1983">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1984">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1985">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1986">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1987">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1988">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1989">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1990">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1991">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1992">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX1993">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX1994">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX1995">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX1996">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX1997">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX1998">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX1999">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2000">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2001">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2002">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2003">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2004">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2005">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2006">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2007">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2008">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2009">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2010">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2011">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2012">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2013">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2014">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2015">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2016">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2017">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2018">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2019">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2020">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2021">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2022">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2023">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2024">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2025">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2026">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2027">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2028">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2029">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2030">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2031">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2032">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2033">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2034">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2035">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2036">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2037">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2038">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2039">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2040">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2041">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2042">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2043">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2044">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2045">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2046">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2047">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2048">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2049">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2050">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2051">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2052">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2053">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2054">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2055">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2056">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2057">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2058">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2059">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2060">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2061">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2062">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2063">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2064">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2065">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2066">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2067">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2068">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2069">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2070">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2071">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2072">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2073">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2074">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2075">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2076">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2077">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2078">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2079">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2080">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2081">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2082">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2083">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2084">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2085">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2086">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2087">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2088">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2089">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2090">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2091">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2092">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2093">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2094">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2095">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2096">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2097">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2098">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2099">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2100">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2101">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2102">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2103">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2104">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2105">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2106">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2107">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2108">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2109">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2110">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2111">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2112">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2113">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2114">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2115">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2116">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2117">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2118">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2119">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2120">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2121">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2122">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2123">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2124">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2125">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2126">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2127">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2128">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2129">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2130">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2131">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2132">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2133">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2134">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2135">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2136">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2137">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2138">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2139">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2140">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2141">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2142">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2143">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2144">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2145">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2146">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2147">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2148">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2149">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2150">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2151">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2152">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2153">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2154">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2155">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2156">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2157">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2158">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2159">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2160">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2161">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2162">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2163">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2164">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2165">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2166">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2167">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2168">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2169">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2170">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2171">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2172">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2173">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2174">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2175">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2176">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2177">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2178">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2179">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2180">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2181">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2182">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2183">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2184">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2185">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2186">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2187">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2188">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2189">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2190">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2191">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2192">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2193">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2194">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2195">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2196">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2197">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2198">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2199">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2200">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2201">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2202">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2203">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2204">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2205">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2206">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2207">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2208">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2209">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2210">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2211">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2212">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2213">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2214">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2215">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2216">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2217">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2218">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2219">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2220">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2221">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2222">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2223">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2224">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2225">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2226">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2227">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2228">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2229">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2230">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2231">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2232">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2233">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2234">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2235">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2236">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2237">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2238">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2239">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2240">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2241">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2242">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2243">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2244">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2245">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2246">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2247">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2248">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2249">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2250">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2251">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2252">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2253">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2254">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2255">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2256">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2257">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2258">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2259">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2260">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2261">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2262">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2263">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2264">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2265">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2266">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2267">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2268">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2269">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2270">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2271">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2272">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2273">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2274">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2275">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2276">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2277">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2278">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2279">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2280">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2281">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2282">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2283">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2284">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2285">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2286">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2287">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2288">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2289">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2290">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2291">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2292">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2293">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2294">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2295">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2296">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2297">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2298">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2299">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2300">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2301">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2302">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2303">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2304">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2305">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2306">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2307">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2308">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2309">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2310">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2311">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2312">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2313">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2314">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2315">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2316">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2317">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2318">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2319">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2320">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2321">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2322">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2323">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2324">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2325">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2326">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2327">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2328">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2329">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2330">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2331">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2332">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2333">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2334">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2335">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2336">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2337">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2338">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2339">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX2340">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX2341">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX2342">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX2343">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX2344">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX2345">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
									</Item>
								</Item>
							</Item>
						</Item>
					</Item>
				</Item>
				<Item class="Model" referent="RBX2346">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Model</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX2347">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Model</string>
							<Ref name="PrimaryPart">null</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Model" referent="RBX2348">
							<Properties>
								<token name="Controller">0</token>
								<bool name="ControllerFlagShown">true</bool>
								<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">Model</string>
								<Ref name="PrimaryPart">null</Ref>
								<bool name="archivable">true</bool>
							</Properties>
							<Item class="Model" referent="RBX2349">
								<Properties>
									<token name="Controller">0</token>
									<bool name="ControllerFlagShown">true</bool>
									<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">Model</string>
									<Ref name="PrimaryPart">null</Ref>
									<bool name="archivable">true</bool>
								</Properties>
								<Item class="Model" referent="RBX2350">
									<Properties>
										<token name="Controller">0</token>
										<bool name="ControllerFlagShown">true</bool>
										<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">Model</string>
										<Ref name="PrimaryPart">null</Ref>
										<bool name="archivable">true</bool>
									</Properties>
									<Item class="Model" referent="RBX2351">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2352">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2353">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2354">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2355">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2356">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2357">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2358">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2359">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2360">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2361">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2362">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2363">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2364">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2365">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2366">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2367">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2368">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2369">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2370">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2371">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2372">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2373">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2374">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2375">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2376">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2377">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2378">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2379">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2380">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2381">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2382">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2383">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2384">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2385">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2386">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2387">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2388">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2389">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2390">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2391">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2392">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2393">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2394">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2395">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2396">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2397">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2398">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2399">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2400">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2401">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2402">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2403">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2404">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2405">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2406">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2407">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2408">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2409">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2410">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2411">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2412">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2413">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2414">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2415">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2416">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2417">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2418">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2419">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2420">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2421">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2422">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2423">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2424">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2425">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2426">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2427">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2428">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2429">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2430">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2431">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2432">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2433">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2434">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2435">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2436">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2437">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2438">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2439">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2440">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2441">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2442">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2443">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2444">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2445">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2446">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2447">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2448">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2449">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2450">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2451">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2452">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2453">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2454">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2455">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2456">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2457">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2458">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2459">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2460">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2461">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2462">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2463">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2464">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2465">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2466">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2467">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2468">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2469">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2470">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2471">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2472">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2473">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2474">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2475">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2476">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2477">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2478">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2479">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2480">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2481">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2482">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2483">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2484">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2485">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2486">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2487">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2488">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2489">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2490">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2491">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2492">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2493">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2494">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2495">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2496">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2497">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2498">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2499">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2500">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2501">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2502">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2503">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2504">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2505">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2506">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2507">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2508">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2509">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2510">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2511">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2512">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2513">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2514">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2515">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2516">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2517">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2518">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2519">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2520">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2521">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2522">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2523">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2524">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2525">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2526">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2527">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2528">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2529">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2530">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2531">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2532">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2533">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2534">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2535">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2536">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2537">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2538">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2539">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2540">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2541">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2542">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2543">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2544">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2545">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2546">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2547">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2548">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2549">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2550">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2551">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2552">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2553">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2554">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2555">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2556">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2557">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2558">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2559">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2560">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2561">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2562">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2563">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2564">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2565">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2566">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2567">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2568">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2569">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2570">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2571">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2572">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2573">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2574">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2575">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2576">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2577">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2578">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2579">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2580">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2581">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2582">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2583">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2584">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2585">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2586">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2587">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2588">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2589">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2590">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2591">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2592">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2593">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2594">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2595">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2596">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2597">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2598">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2599">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2600">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2601">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2602">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2603">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2604">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2605">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2606">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2607">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2608">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2609">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2610">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2611">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2612">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2613">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2614">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2615">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2616">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2617">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2618">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2619">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2620">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2621">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2622">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2623">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2624">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2625">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2626">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2627">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2628">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2629">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2630">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2631">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2632">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2633">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2634">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2635">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2636">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2637">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2638">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2639">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2640">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2641">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2642">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2643">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2644">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2645">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2646">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2647">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2648">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2649">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2650">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2651">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2652">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2653">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2654">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2655">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2656">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2657">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2658">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2659">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2660">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2661">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2662">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2663">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2664">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2665">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2666">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2667">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2668">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2669">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2670">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2671">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2672">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2673">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2674">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2675">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2676">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2677">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2678">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2679">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2680">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2681">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2682">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2683">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2684">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2685">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2686">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2687">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2688">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2689">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2690">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2691">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2692">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2693">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2694">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2695">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2696">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2697">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2698">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2699">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2700">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2701">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2702">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2703">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2704">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2705">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2706">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2707">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2708">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2709">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2710">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2711">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2712">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2713">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2714">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2715">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2716">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2717">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2718">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2719">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2720">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2721">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2722">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2723">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2724">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2725">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2726">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2727">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2728">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2729">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2730">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2731">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2732">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2733">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2734">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2735">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2736">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2737">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2738">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2739">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2740">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2741">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2742">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2743">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2744">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2745">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2746">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2747">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2748">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2749">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2750">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2751">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2752">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2753">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2754">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2755">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2756">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2757">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2758">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2759">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX2760">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX2761">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX2762">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX2763">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX2764">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX2765">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
									</Item>
								</Item>
							</Item>
						</Item>
					</Item>
				</Item>
				<Item class="Model" referent="RBX2766">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Model</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX2767">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Model</string>
							<Ref name="PrimaryPart">null</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Model" referent="RBX2768">
							<Properties>
								<token name="Controller">0</token>
								<bool name="ControllerFlagShown">true</bool>
								<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">Model</string>
								<Ref name="PrimaryPart">null</Ref>
								<bool name="archivable">true</bool>
							</Properties>
							<Item class="Model" referent="RBX2769">
								<Properties>
									<token name="Controller">0</token>
									<bool name="ControllerFlagShown">true</bool>
									<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">Model</string>
									<Ref name="PrimaryPart">null</Ref>
									<bool name="archivable">true</bool>
								</Properties>
								<Item class="Model" referent="RBX2770">
									<Properties>
										<token name="Controller">0</token>
										<bool name="ControllerFlagShown">true</bool>
										<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">Model</string>
										<Ref name="PrimaryPart">null</Ref>
										<bool name="archivable">true</bool>
									</Properties>
									<Item class="Model" referent="RBX2771">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2772">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2773">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2774">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2775">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2776">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2777">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2778">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2779">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2780">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2781">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2782">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2783">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2784">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2785">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2786">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2787">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2788">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2789">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2790">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2791">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2792">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2793">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2794">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2795">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2796">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2797">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2798">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2799">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2800">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2801">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2802">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2803">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2804">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2805">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2806">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2807">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2808">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2809">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2810">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2811">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2812">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2813">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2814">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2815">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2816">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2817">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2818">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2819">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2820">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2821">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2822">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2823">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2824">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2825">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2826">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2827">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2828">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2829">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2830">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2831">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2832">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2833">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2834">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2835">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2836">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2837">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2838">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2839">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2840">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2841">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2842">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2843">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2844">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2845">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2846">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2847">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2848">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2849">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2850">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2851">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2852">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2853">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2854">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2855">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2856">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2857">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2858">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2859">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2860">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2861">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2862">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2863">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2864">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2865">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2866">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2867">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2868">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2869">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2870">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2871">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2872">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2873">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2874">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2875">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2876">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2877">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2878">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2879">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2880">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2881">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2882">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2883">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2884">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2885">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2886">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2887">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2888">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2889">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2890">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2891">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2892">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2893">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2894">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2895">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2896">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2897">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2898">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2899">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2900">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2901">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2902">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2903">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2904">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2905">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2906">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2907">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2908">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2909">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2910">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2911">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2912">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2913">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2914">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2915">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2916">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2917">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2918">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2919">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2920">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2921">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2922">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2923">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2924">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2925">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2926">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2927">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2928">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2929">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2930">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2931">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2932">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2933">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2934">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2935">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2936">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2937">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2938">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2939">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2940">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2941">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2942">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2943">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2944">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2945">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2946">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2947">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2948">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2949">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2950">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2951">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2952">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2953">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2954">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2955">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2956">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2957">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2958">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2959">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2960">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2961">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2962">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2963">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2964">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2965">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2966">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2967">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2968">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2969">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2970">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2971">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2972">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2973">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2974">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2975">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2976">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2977">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2978">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2979">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2980">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2981">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2982">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2983">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2984">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2985">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2986">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2987">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2988">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2989">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2990">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX2991">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX2992">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX2993">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2994">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX2995">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2996">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX2997">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX2998">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX2999">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3000">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3001">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3002">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3003">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3004">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3005">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3006">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3007">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3008">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3009">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3010">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3011">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3012">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3013">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3014">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3015">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3016">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3017">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3018">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3019">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3020">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3021">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3022">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3023">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3024">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3025">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3026">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3027">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3028">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3029">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3030">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3031">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3032">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3033">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3034">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3035">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3036">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3037">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3038">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3039">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3040">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3041">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3042">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3043">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3044">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3045">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3046">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3047">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3048">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3049">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3050">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3051">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3052">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3053">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3054">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3055">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3056">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3057">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3058">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3059">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3060">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3061">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3062">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3063">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3064">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3065">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3066">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3067">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3068">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3069">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3070">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3071">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3072">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3073">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3074">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3075">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3076">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3077">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3078">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3079">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3080">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3081">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3082">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3083">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3084">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3085">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3086">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3087">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3088">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3089">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3090">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3091">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3092">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3093">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3094">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3095">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3096">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3097">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3098">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3099">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3100">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3101">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3102">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3103">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3104">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3105">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3106">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3107">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3108">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3109">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3110">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3111">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3112">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3113">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3114">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3115">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3116">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3117">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3118">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3119">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3120">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3121">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3122">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3123">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3124">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3125">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3126">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3127">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3128">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3129">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3130">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3131">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3132">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3133">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3134">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3135">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3136">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3137">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3138">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3139">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3140">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3141">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3142">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3143">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3144">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3145">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3146">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3147">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3148">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3149">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3150">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3151">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3152">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3153">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3154">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3155">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3156">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3157">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3158">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3159">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3160">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3161">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3162">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3163">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3164">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3165">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3166">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3167">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3168">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3169">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3170">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3171">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3172">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3173">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3174">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3175">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3176">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3177">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3178">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3179">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX3180">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX3181">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX3182">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX3183">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX3184">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX3185">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
									</Item>
								</Item>
							</Item>
						</Item>
					</Item>
				</Item>
				<Item class="Model" referent="RBX3186">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Model</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX3187">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Model</string>
							<Ref name="PrimaryPart">null</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Model" referent="RBX3188">
							<Properties>
								<token name="Controller">0</token>
								<bool name="ControllerFlagShown">true</bool>
								<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">Model</string>
								<Ref name="PrimaryPart">null</Ref>
								<bool name="archivable">true</bool>
							</Properties>
							<Item class="Model" referent="RBX3189">
								<Properties>
									<token name="Controller">0</token>
									<bool name="ControllerFlagShown">true</bool>
									<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">Model</string>
									<Ref name="PrimaryPart">null</Ref>
									<bool name="archivable">true</bool>
								</Properties>
								<Item class="Model" referent="RBX3190">
									<Properties>
										<token name="Controller">0</token>
										<bool name="ControllerFlagShown">true</bool>
										<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">Model</string>
										<Ref name="PrimaryPart">null</Ref>
										<bool name="archivable">true</bool>
									</Properties>
									<Item class="Model" referent="RBX3191">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3192">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3193">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3194">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3195">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3196">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3197">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3198">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3199">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3200">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3201">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3202">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3203">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3204">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3205">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3206">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3207">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3208">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3209">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3210">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3211">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3212">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3213">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3214">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3215">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3216">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3217">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3218">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3219">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3220">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3221">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3222">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3223">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3224">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3225">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3226">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3227">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3228">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3229">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3230">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3231">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3232">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3233">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3234">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3235">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3236">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3237">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3238">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3239">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3240">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3241">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3242">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3243">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3244">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3245">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3246">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3247">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3248">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3249">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3250">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3251">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3252">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3253">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3254">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3255">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3256">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3257">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3258">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3259">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3260">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3261">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3262">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3263">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3264">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3265">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3266">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3267">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3268">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3269">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3270">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3271">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3272">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3273">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3274">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3275">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3276">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3277">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3278">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3279">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3280">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3281">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3282">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3283">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3284">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3285">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3286">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3287">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3288">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3289">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3290">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3291">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3292">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3293">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3294">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3295">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3296">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3297">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3298">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3299">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3300">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3301">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3302">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3303">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3304">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3305">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3306">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3307">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3308">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3309">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3310">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3311">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3312">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3313">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3314">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3315">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3316">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3317">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3318">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3319">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3320">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3321">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3322">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3323">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3324">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3325">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3326">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3327">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3328">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3329">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3330">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3331">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3332">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3333">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3334">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3335">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3336">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3337">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3338">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3339">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3340">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3341">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3342">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3343">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3344">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3345">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3346">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3347">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3348">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3349">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3350">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3351">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3352">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3353">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3354">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3355">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3356">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3357">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3358">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3359">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3360">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3361">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3362">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3363">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3364">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3365">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3366">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3367">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3368">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3369">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3370">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3371">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3372">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3373">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3374">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3375">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3376">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3377">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3378">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3379">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3380">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3381">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3382">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3383">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3384">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3385">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3386">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3387">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3388">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3389">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3390">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3391">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3392">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3393">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3394">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3395">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3396">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3397">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3398">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3399">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3400">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3401">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3402">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3403">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3404">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3405">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3406">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3407">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3408">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3409">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3410">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3411">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3412">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3413">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3414">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3415">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3416">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3417">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3418">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3419">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3420">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3421">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3422">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3423">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3424">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3425">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3426">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3427">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3428">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3429">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3430">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3431">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3432">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3433">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3434">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3435">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3436">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3437">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3438">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3439">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3440">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3441">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3442">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3443">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3444">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3445">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3446">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3447">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3448">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3449">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3450">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3451">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3452">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3453">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3454">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3455">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3456">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3457">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3458">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3459">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3460">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3461">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3462">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3463">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3464">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3465">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3466">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3467">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3468">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3469">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3470">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3471">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3472">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3473">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3474">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3475">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3476">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3477">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3478">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3479">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3480">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3481">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3482">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3483">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3484">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3485">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3486">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3487">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3488">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3489">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3490">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3491">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3492">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3493">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3494">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3495">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3496">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3497">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3498">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3499">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3500">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3501">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3502">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3503">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3504">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3505">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3506">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3507">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3508">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3509">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3510">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3511">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3512">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3513">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3514">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3515">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3516">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3517">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3518">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3519">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3520">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3521">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3522">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3523">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3524">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3525">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3526">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3527">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3528">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3529">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3530">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3531">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3532">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3533">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3534">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3535">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3536">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3537">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3538">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3539">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3540">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3541">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3542">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3543">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3544">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3545">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3546">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3547">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3548">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3549">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3550">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3551">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3552">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3553">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3554">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3555">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3556">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3557">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3558">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3559">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3560">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3561">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3562">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3563">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3564">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3565">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3566">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3567">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3568">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3569">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3570">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3571">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3572">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3573">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3574">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3575">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3576">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3577">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3578">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3579">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3580">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3581">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3582">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3583">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3584">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3585">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3586">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3587">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3588">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3589">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3590">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3591">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3592">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3593">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3594">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3595">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3596">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3597">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3598">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3599">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX3600">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX3601">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX3602">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX3603">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX3604">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX3605">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
									</Item>
								</Item>
							</Item>
						</Item>
					</Item>
				</Item>
			</Item>
		</Item>
		<Item class="Model" referent="RBX3606">
			<Properties>
				<token name="Controller">0</token>
				<bool name="ControllerFlagShown">true</bool>
				<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">Model</string>
				<Ref name="PrimaryPart">RBX3607</Ref>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Part" referent="RBX3608">
				<Properties>
					<bool name="Anchored">true</bool>
					<float name="BackParamA">-0.5</float>
					<float name="BackParamB">0.5</float>
					<token name="BackSurface">2</token>
					<token name="BackSurfaceInput">0</token>
					<float name="BottomParamA">-0.5</float>
					<float name="BottomParamB">0.5</float>
					<token name="BottomSurface">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">21</int>
					<CoordinateFrame name="CFrame">
						<X>46</X>
						<Y>8.30000019</Y>
						<Z>86.5</Z>
						<R00>0</R00>
						<R01>0</R01>
						<R02>-1</R02>
						<R10>0</R10>
						<R11>1</R11>
						<R12>-0</R12>
						<R20>1</R20>
						<R21>0</R21>
						<R22>-0</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">false</bool>
					<string name="Name">Smooth Block Model</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">0</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>3</X>
						<Y>7.20000029</Y>
						<Z>16</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX3609">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX3610">
				<Properties>
					<bool name="Anchored">true</bool>
					<float name="BackParamA">-0.5</float>
					<float name="BackParamB">0.5</float>
					<token name="BackSurface">2</token>
					<token name="BackSurfaceInput">0</token>
					<float name="BottomParamA">-0.5</float>
					<float name="BottomParamB">0.5</float>
					<token name="BottomSurface">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">21</int>
					<CoordinateFrame name="CFrame">
						<X>46</X>
						<Y>8.10000038</Y>
						<Z>77.5</Z>
						<R00>0</R00>
						<R01>0</R01>
						<R02>-1</R02>
						<R10>0</R10>
						<R11>1</R11>
						<R12>-0</R12>
						<R20>1</R20>
						<R21>0</R21>
						<R22>-0</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">false</bool>
					<string name="Name">Smooth Block Model</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.000847632124</X>
						<Y>0.00049094687</Y>
						<Z>-0.00192241569</Z>
					</Vector3>
					<float name="TopParamA">-0.5</float>
					<float name="TopParamB">0.5</float>
					<token name="TopSurface">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0</float>
					<Vector3 name="Velocity">
						<X>-0.0107972948</X>
						<Y>0.0148061393</Y>
						<Z>0.00948020164</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>3</X>
						<Y>7.20000029</Y>
						<Z>16</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX3611">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX3612">
				<Properties>
					<bool name="Anchored">false</bool>
					<float name="BackParamA">-0.5</float>
					<float name="BackParamB">0.5</float>
					<token name="BackSurface">2</token>
					<token name="BackSurfaceInput">0</token>
					<float name="BottomParamA">-0.5</float>
					<float name="BottomParamB">0.5</float>
					<token name="BottomSurface">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">26</int>
					<CoordinateFrame name="CFrame">
						<X>46.5</X>
						<Y>9.30000019</Y>
						<Z>82</Z>
						<R00>0</R00>
						<R01>0</R01>
						<R02>-1</R02>
						<R10>0</R10>
						<R11>1</R11>
						<R12>0</R12>
						<R20>1</R20>
						<R21>0</R21>
						<R22>0</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">false</bool>
					<string name="Name">Smooth Block Model</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.000847632124</X>
						<Y>0.00049094687</Y>
						<Z>-0.00192241569</Z>
					</Vector3>
					<float name="TopParamA">-0.5</float>
					<float name="TopParamB">0.5</float>
					<token name="TopSurface">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0</float>
					<Vector3 name="Velocity">
						<X>-0.00628113654</X>
						<Y>0.0100305872</Y>
						<Z>0.0102518871</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>6</X>
						<Y>2.4000001</Y>
						<Z>3</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX3613">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Model" referent="RBX3614">
				<Properties>
					<token name="Controller">0</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Landmaster</string>
					<Ref name="PrimaryPart">RBX3607</Ref>
					<bool name="archivable">true</bool>
				</Properties>
				<Item class="Part" referent="RBX3615">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>52</X>
							<Y>3.9000001</Y>
							<Z>77.5</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0188714415</X>
							<Y>0.00327164517</Y>
							<Z>0.00297446526</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3616">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>52.0000076</X>
							<Y>2.89512801</Y>
							<Z>74</Z>
							<R00>-2.50344078e-006</R00>
							<R01>-0.190747857</R01>
							<R02>0.981638968</R02>
							<R10>0.00114324747</R10>
							<R11>-0.981638253</R11>
							<R12>-0.190747738</R12>
							<R20>0.999999285</R20>
							<R21>0.0011217678</R21>
							<R22>0.000220686154</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3617">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>57</X>
							<Y>7.10000038</Y>
							<Z>82</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">0</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">2</token>
						<token name="LeftSurfaceInput">0</token>
						<bool name="Locked">false</bool>
						<string name="Name">Smooth Block Model</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.5</float>
						<float name="RightParamB">0.5</float>
						<token name="RightSurface">2</token>
						<token name="RightSurfaceInput">0</token>
						<Vector3 name="RotVelocity">
							<X>0.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</Z>
						</Vector3>
						<float name="TopParamA">-0.5</float>
						<float name="TopParamB">0.5</float>
						<token name="TopSurface">0</token>
						<token name="TopSurfaceInput">0</token>
						<float name="Transparency">0</float>
						<Vector3 name="Velocity">
							<X>-0.0105104502</X>
							<Y>-0.0101547772</Y>
							<Z>0.00323215406</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">2</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>2</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3618">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>55</X>
							<Y>7.10000038</Y>
							<Z>82</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">0</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">2</token>
						<token name="LeftSurfaceInput">0</token>
						<bool name="Locked">false</bool>
						<string name="Name">Smooth Block Model</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.5</float>
						<float name="RightParamB">0.5</float>
						<token name="RightSurface">2</token>
						<token name="RightSurfaceInput">0</token>
						<Vector3 name="RotVelocity">
							<X>0.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</Z>
						</Vector3>
						<float name="TopParamA">-0.5</float>
						<float name="TopParamB">0.5</float>
						<token name="TopSurface">0</token>
						<token name="TopSurfaceInput">0</token>
						<float name="Transparency">0</float>
						<Vector3 name="Velocity">
							<X>-0.0105104502</X>
							<Y>-0.00630994607</Y>
							<Z>0.00421404792</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">2</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>2</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3619">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>48</X>
							<Y>3.9000001</Y>
							<Z>77.5</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0188714415</X>
							<Y>0.0109613081</Y>
							<Z>0.00493825274</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3620">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>46.5</X>
							<Y>7.50000048</Y>
							<Z>82</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.00974148419</X>
							<Y>0.0100305872</Y>
							<Z>0.0087261498</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>6</X>
							<Y>1.20000005</Y>
							<Z>3</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3621">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>44.5</X>
							<Y>5.10000038</Y>
							<Z>82</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0143552814</X>
							<Y>0.0138754183</Y>
							<Z>0.00767372549</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>6</X>
							<Y>1.20000005</Y>
							<Z>7</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3622">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>40</X>
							<Y>3.9000001</Y>
							<Z>86.5</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0144529203</X>
							<Y>0.018711945</Y>
							<Z>0.00886582769</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3623">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>44</X>
							<Y>3.9000001</Y>
							<Z>77.5</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0188714415</X>
							<Y>0.0186509714</Y>
							<Z>0.00690203998</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3624">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>42</X>
							<Y>7.50000048</Y>
							<Z>82</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.00974148419</X>
							<Y>0.0186814573</Y>
							<Z>0.0109354109</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>6</X>
							<Y>1.20000005</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3625">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>42.0000076</X>
							<Y>2.8951335</Y>
							<Z>73.9999847</Z>
							<R00>-7.83386622e-006</R00>
							<R01>-0.45656395</R01>
							<R02>0.889690518</R02>
							<R10>0.00114096992</R10>
							<R11>-0.889689863</R11>
							<R12>-0.456563652</R12>
							<R20>0.999999285</R20>
							<R21>0.00101149373</R21>
							<R22>0.000528028351</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3626">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>39.5</X>
							<Y>6.30000067</Y>
							<Z>84</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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>2</X>
							<Y>1.20000005</Y>
							<Z>3</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3627">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>42.0000153</X>
							<Y>2.89634395</Y>
							<Z>89.9999542</Z>
							<R00>-1.17056825e-005</R00>
							<R01>0.538834214</R01>
							<R02>-0.842411697</R02>
							<R10>0.000857717532</R10>
							<R11>-0.842411339</R11>
							<R12>-0.538834035</R12>
							<R20>-0.999999523</R20>
							<R21>-0.000728906249</R21>
							<R22>-0.000452150503</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3628">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>49</X>
							<Y>7.10000038</Y>
							<Z>82</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">0</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">2</token>
						<token name="LeftSurfaceInput">0</token>
						<bool name="Locked">false</bool>
						<string name="Name">Smooth Block Model</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.5</float>
						<float name="RightParamB">0.5</float>
						<token name="RightSurface">2</token>
						<token name="RightSurfaceInput">0</token>
						<Vector3 name="RotVelocity">
							<X>0.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</Z>
						</Vector3>
						<float name="TopParamA">-0.5</float>
						<float name="TopParamB">0.5</float>
						<token name="TopSurface">0</token>
						<token name="TopSurfaceInput">0</token>
						<float name="Transparency">0</float>
						<Vector3 name="Velocity">
							<X>-0.0105104502</X>
							<Y>0.00522454781</Y>
							<Z>0.00715972949</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">2</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>2</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3629">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">1</int>
						<CoordinateFrame name="CFrame">
							<X>36</X>
							<Y>6.30000019</Y>
							<Z>82</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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>6</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3630">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>37.5</X>
							<Y>5.10000038</Y>
							<Z>82</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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>6</X>
							<Y>1.20000005</Y>
							<Z>7</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3631">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>51.9999962</X>
							<Y>2.89632034</Y>
							<Z>89.9999771</Z>
							<R00>5.20192543e-007</R00>
							<R01>0.673407912</R01>
							<R02>-0.739271104</R02>
							<R10>0.000863861875</R10>
							<R11>-0.739270866</R11>
							<R12>-0.673407674</R12>
							<R20>-0.999999642</R20>
							<R21>-0.000638247933</R21>
							<R22>-0.000582118228</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3632">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>36</X>
							<Y>3.9000001</Y>
							<Z>86.5</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0144529203</X>
							<Y>0.0264016073</Y>
							<Z>0.0108296154</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3633">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>47</X>
							<Y>2.89512277</Y>
							<Z>74.0000076</Z>
							<R00>-6.94777782e-006</R00>
							<R01>-0.388625145</R01>
							<R02>0.921395957</R02>
							<R10>0.00114255177</R10>
							<R11>-0.921395302</R11>
							<R12>-0.388624877</R12>
							<R20>0.999999344</R20>
							<R21>0.00105003826</R21>
							<R22>0.000450439984</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3634">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>40</X>
							<Y>3.9000001</Y>
							<Z>77.5</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0188714415</X>
							<Y>0.0263406336</Y>
							<Z>0.00886582769</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3635">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>48</X>
							<Y>3.9000001</Y>
							<Z>86.5</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0144529203</X>
							<Y>0.00333261886</Y>
							<Z>0.00493825274</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3636">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>51</X>
							<Y>4.5</Y>
							<Z>82</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0155087318</X>
							<Y>0.00137971633</Y>
							<Z>0.00397399114</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>6</X>
							<Y>2.4000001</Y>
							<Z>6</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Model" referent="RBX3637">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Part</string>
						<Ref name="PrimaryPart">RBX3607</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Part" referent="RBX3607">
						<Properties>
							<bool name="Anchored">false</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">194</int>
							<CoordinateFrame name="CFrame">
								<X>44</X>
								<Y>2.0999999</Y>
								<Z>82</Z>
								<R00>0</R00>
								<R01>0</R01>
								<R02>-1</R02>
								<R10>0</R10>
								<R11>1</R11>
								<R12>0</R12>
								<R20>1</R20>
								<R21>0</R21>
								<R22>0</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">1</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">false</bool>
							<string name="Name">Engine</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.000847632124</X>
								<Y>0.00049094687</Y>
								<Z>-0.00192241569</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.0201225299</X>
								<Y>0.0148366261</Y>
								<Z>0.00537630217</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>12</X>
								<Y>2.4000001</Y>
								<Z>20</Z>
							</Vector3>
						</Properties>
						<Item class="BodyPosition" referent="RBX3638">
							<Properties>
								<float name="D">1250</float>
								<string name="Name">BodyPosition</string>
								<float name="P">10000</float>
								<bool name="archivable">true</bool>
								<Vector3 name="maxForce">
									<X>0</X>
									<Y>0</Y>
									<Z>0</Z>
								</Vector3>
								<Vector3 name="position">
									<X>-1.5</X>
									<Y>3</Y>
									<Z>-48</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="BodyGyro" referent="RBX3639">
							<Properties>
								<float name="D">500</float>
								<string name="Name">BodyGyro</string>
								<float name="P">3000</float>
								<bool name="archivable">true</bool>
								<CoordinateFrame name="cframe">
									<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>
								<Vector3 name="maxTorque">
									<X>0</X>
									<Y>0</Y>
									<Z>0</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="Script" referent="RBX3640">
							<Properties>
								<bool name="Disabled">false</bool>
								<Content name="LinkedSource"><null></null></Content>
								<string name="Name">Script</string>
								<string name="Source">model = script.Parent.Parent.Parent
backup = model:clone()
local debounce = false

function onTouch(part)
	if (part.Name == &quot;Safe&quot;) and (debounce == false) and (script.Parent.Count.Value == 0) then
	debounce = true
	wait(5)
	model = backup:clone()
	model.Parent = game.Workspace
	model:makeJoints()
	script.Parent.Count.Value = 1
	debounce = false
	end
end 
script.Parent.Touched:connect(onTouch)
</string>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
						<Item class="IntValue" referent="RBX3641">
							<Properties>
								<string name="Name">Count</string>
								<int name="Value">0</int>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
					</Item>
					<Item class="Seat" referent="RBX3642">
						<Properties>
							<bool name="Anchored">false</bool>
							<float name="BackParamA">-0.5</float>
							<float name="BackParamB">0.5</float>
							<token name="BackSurface">2</token>
							<token name="BackSurfaceInput">0</token>
							<float name="BottomParamA">-0.5</float>
							<float name="BottomParamB">0.5</float>
							<token name="BottomSurface">2</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">26</int>
							<CoordinateFrame name="CFrame">
								<X>44</X>
								<Y>7.10000038</Y>
								<Z>82</Z>
								<R00>0</R00>
								<R01>0</R01>
								<R02>-1</R02>
								<R10>0</R10>
								<R11>1</R11>
								<R12>0</R12>
								<R20>1</R20>
								<R21>0</R21>
								<R22>0</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">2</token>
							<token name="FrontSurfaceInput">0</token>
							<float name="LeftParamA">-0.5</float>
							<float name="LeftParamB">0.5</float>
							<token name="LeftSurface">2</token>
							<token name="LeftSurfaceInput">0</token>
							<bool name="Locked">false</bool>
							<string name="Name">Seat</string>
							<float name="Reflectance">0</float>
							<float name="RightParamA">-0.5</float>
							<float name="RightParamB">0.5</float>
							<token name="RightSurface">2</token>
							<token name="RightSurfaceInput">0</token>
							<Vector3 name="RotVelocity">
								<X>0.000847632124</X>
								<Y>0.00049094687</Y>
								<Z>-0.00192241569</Z>
							</Vector3>
							<float name="TopParamA">-0.5</float>
							<float name="TopParamB">0.5</float>
							<token name="TopSurface">2</token>
							<token name="TopSurfaceInput">0</token>
							<float name="Transparency">0</float>
							<Vector3 name="Velocity">
								<X>-0.0105104502</X>
								<Y>0.0148366261</Y>
								<Z>0.0096144639</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>2</X>
								<Y>0.400000006</Y>
								<Z>2</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Seat" referent="RBX3643">
						<Properties>
							<bool name="Anchored">false</bool>
							<float name="BackParamA">-0.5</float>
							<float name="BackParamB">0.5</float>
							<token name="BackSurface">2</token>
							<token name="BackSurfaceInput">0</token>
							<float name="BottomParamA">-0.5</float>
							<float name="BottomParamB">0.5</float>
							<token name="BottomSurface">2</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">26</int>
							<CoordinateFrame name="CFrame">
								<X>39</X>
								<Y>5.90000057</Y>
								<Z>82</Z>
								<R00>0</R00>
								<R01>0</R01>
								<R02>-1</R02>
								<R10>0</R10>
								<R11>1</R11>
								<R12>0</R12>
								<R20>1</R20>
								<R21>0</R21>
								<R22>0</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">2</token>
							<token name="FrontSurfaceInput">0</token>
							<float name="LeftParamA">-0.5</float>
							<float name="LeftParamB">0.5</float>
							<token name="LeftSurface">2</token>
							<token name="LeftSurfaceInput">0</token>
							<bool name="Locked">false</bool>
							<string name="Name">Seat</string>
							<float name="Reflectance">0</float>
							<float name="RightParamA">-0.5</float>
							<float name="RightParamB">0.5</float>
							<token name="RightSurface">2</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">2</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>2</X>
								<Y>0.400000006</Y>
								<Z>2</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX3644">
						<Properties>
							<bool name="Anchored">false</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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">28</int>
							<CoordinateFrame name="CFrame">
								<X>42</X>
								<Y>8.30000019</Y>
								<Z>84.5</Z>
								<R00>0</R00>
								<R01>0</R01>
								<R02>-1</R02>
								<R10>0</R10>
								<R11>1</R11>
								<R12>0</R12>
								<R20>1</R20>
								<R21>0</R21>
								<R22>0</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">false</bool>
							<string name="Name">tur_start</string>
							<float name="Reflectance">0.300000012</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.000847632124</X>
								<Y>0.00049094687</Y>
								<Z>-0.00192241569</Z>
							</Vector3>
							<float name="TopParamA">-0.5</float>
							<float name="TopParamB">0.5</float>
							<token name="TopSurface">0</token>
							<token name="TopSurfaceInput">0</token>
							<float name="Transparency">0</float>
							<Vector3 name="Velocity">
								<X>-0.0069761849</X>
								<Y>0.0165623762</Y>
								<Z>0.0116135161</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>1</X>
								<Y>0.400000006</Y>
								<Z>2</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX3645">
						<Properties>
							<bool name="Anchored">false</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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">21</int>
							<CoordinateFrame name="CFrame">
								<X>42</X>
								<Y>8.30000019</Y>
								<Z>79.5</Z>
								<R00>0</R00>
								<R01>0</R01>
								<R02>-1</R02>
								<R10>0</R10>
								<R11>1</R11>
								<R12>0</R12>
								<R20>1</R20>
								<R21>0</R21>
								<R22>0</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">false</bool>
							<string name="Name">tur_stop</string>
							<float name="Reflectance">0.300000012</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.000847632124</X>
								<Y>0.00049094687</Y>
								<Z>-0.00192241569</Z>
							</Vector3>
							<float name="TopParamA">-0.5</float>
							<float name="TopParamB">0.5</float>
							<token name="TopSurface">0</token>
							<token name="TopSurfaceInput">0</token>
							<float name="Transparency">0</float>
							<Vector3 name="Velocity">
								<X>-0.00943091977</X>
								<Y>0.0208005384</Y>
								<Z>0.0116135161</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>1</X>
								<Y>0.400000006</Y>
								<Z>2</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX3646">
						<Properties>
							<bool name="Anchored">false</bool>
							<float name="BackParamA">-0.5</float>
							<float name="BackParamB">0.5</float>
							<token name="BackSurface">2</token>
							<token name="BackSurfaceInput">0</token>
							<float name="BottomParamA">-0.5</float>
							<float name="BottomParamB">0.5</float>
							<token name="BottomSurface">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">199</int>
							<CoordinateFrame name="CFrame">
								<X>59</X>
								<Y>7.10000038</Y>
								<Z>82</Z>
								<R00>0</R00>
								<R01>0</R01>
								<R02>-1</R02>
								<R10>0</R10>
								<R11>1</R11>
								<R12>0</R12>
								<R20>1</R20>
								<R21>0</R21>
								<R22>0</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">0</token>
							<float name="Friction">0.300000012</float>
							<float name="FrontParamA">0</float>
							<float name="FrontParamB">0</float>
							<token name="FrontSurface">6</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">false</bool>
							<string name="Name">Tip</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.000847632124</X>
								<Y>0.00049094687</Y>
								<Z>-0.00192241569</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.0105104502</X>
								<Y>-0.0139996083</Y>
								<Z>0.00225026021</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">2</token>
							<Vector3 name="size">
								<X>2</X>
								<Y>2</Y>
								<Z>2</Z>
							</Vector3>
						</Properties>
						<Item class="Script" referent="RBX3647">
							<Properties>
								<bool name="Disabled">false</bool>
								<Content name="LinkedSource"><null></null></Content>
								<string name="Name">Script</string>
								<string name="Source">function createExplosion(position)

explosion = Instance.new(&quot;Explosion&quot;)
explosion.Position = position
explosion.BlastRadius = 12
explosion.Parent = game.Workspace

end

function onTouch(part)
	if (part.Name == &quot;Rocket&quot;) or (part.Name == &quot;Safe&quot;) or (part.Parent.Parent.Parent == script.Parent.Parent.Parent) or (part.Parent:findFirstChild(&quot;Humanoid&quot;)) then return end
	if (script.Parent.Velocity.x &lt; 50) or (script.Parent.Velocity.x &gt; -50) or (script.Parent.Velocity.z &lt; 50) or (script.Parent.Velocity.z &gt; -50) then
	createExplosion(script.Parent.Position)
	end
end

script.Parent.Touched:connect(onTouch)
</string>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
					</Item>
					<Item class="Part" referent="RBX3648">
						<Properties>
							<bool name="Anchored">false</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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>36</X>
								<Y>6.30000019</Y>
								<Z>86.5</Z>
								<R00>0</R00>
								<R01>0</R01>
								<R02>1</R02>
								<R10>0</R10>
								<R11>1</R11>
								<R12>0</R12>
								<R20>-1</R20>
								<R21>0</R21>
								<R22>0</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">1</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">false</bool>
							<string name="Name">SL</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>3</X>
								<Y>3.60000014</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
						<Item class="BodyPosition" referent="RBX3649">
							<Properties>
								<float name="D">1250</float>
								<string name="Name">BodyPosition</string>
								<float name="P">10000</float>
								<bool name="archivable">true</bool>
								<Vector3 name="maxForce">
									<X>4000</X>
									<Y>4000</Y>
									<Z>4000</Z>
								</Vector3>
								<Vector3 name="position">
									<X>0</X>
									<Y>50</Y>
									<Z>0</Z>
								</Vector3>
							</Properties>
						</Item>
					</Item>
					<Item class="Part" referent="RBX3650">
						<Properties>
							<bool name="Anchored">false</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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>36</X>
								<Y>6.30000019</Y>
								<Z>77.5</Z>
								<R00>0</R00>
								<R01>0</R01>
								<R02>1</R02>
								<R10>0</R10>
								<R11>1</R11>
								<R12>0</R12>
								<R20>-1</R20>
								<R21>0</R21>
								<R22>0</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">1</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">false</bool>
							<string name="Name">SR</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.000847632124</X>
								<Y>0.00049094687</Y>
								<Z>-0.00192241569</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.0142576434</X>
								<Y>0.0340302959</Y>
								<Z>0.0128639322</Z>
							</Vector3>
							<bool name="archivable">true</bool>
							<token name="shape">1</token>
							<Vector3 name="size">
								<X>3</X>
								<Y>3.60000014</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
				</Item>
				<Item class="Part" referent="RBX3651">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>47.0000076</X>
							<Y>2.89633679</Y>
							<Z>90.0000153</Z>
							<R00>-2.39944211e-006</R00>
							<R01>-0.306737363</R01>
							<R02>-0.951794147</R02>
							<R10>0.000859665743</R10>
							<R11>-0.95179379</R11>
							<R12>0.306737274</R12>
							<R20>-0.999999583</R20>
							<R21>-0.000817475549</R21>
							<R22>0.000266068295</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3652">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">141</int>
						<CoordinateFrame name="CFrame">
							<X>44.5</X>
							<Y>3.9000001</Y>
							<Z>82</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0166621804</X>
							<Y>0.0138754183</Y>
							<Z>0.00665656663</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>6</X>
							<Y>1.20000005</Y>
							<Z>7</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3653">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>44.5</X>
							<Y>6.30000019</Y>
							<Z>82</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0120483832</X>
							<Y>0.0138754183</Y>
							<Z>0.00869088434</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>6</X>
							<Y>1.20000005</Y>
							<Z>7</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3654">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>44</X>
							<Y>7.50000048</Y>
							<Z>84</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.00875958987</X>
							<Y>0.013141362</Y>
							<Z>0.00995351654</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>1.20000005</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3655">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>52</X>
							<Y>3.9000001</Y>
							<Z>86.5</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0144529203</X>
							<Y>-0.00435704412</Y>
							<Z>0.00297446526</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3656">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>37.0000229</X>
							<Y>2.89635897</Y>
							<Z>90.0000305</Z>
							<R00>-9.39238271e-006</R00>
							<R01>0.613421738</R01>
							<R02>-0.789755583</R02>
							<R10>0.000854248588</R10>
							<R11>-0.789755344</R11>
							<R12>-0.6134215</R12>
							<R20>-0.999999702</R20>
							<R21>-0.00068036071</R21>
							<R22>-0.000516699103</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3657">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">21</int>
						<CoordinateFrame name="CFrame">
							<X>37.5</X>
							<Y>3.9000001</Y>
							<Z>82</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0166621804</X>
							<Y>0.0273323283</Y>
							<Z>0.0100931944</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>6</X>
							<Y>1.20000005</Y>
							<Z>7</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3658">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>44</X>
							<Y>7.50000048</Y>
							<Z>80</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0107233776</X>
							<Y>0.0165318903</Y>
							<Z>0.00995351654</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>1.20000005</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3659">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>51</X>
							<Y>7.10000038</Y>
							<Z>82</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">0</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">2</token>
						<token name="LeftSurfaceInput">0</token>
						<bool name="Locked">false</bool>
						<string name="Name">Smooth Block Model</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.5</float>
						<float name="RightParamB">0.5</float>
						<token name="RightSurface">2</token>
						<token name="RightSurfaceInput">0</token>
						<Vector3 name="RotVelocity">
							<X>0.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</Z>
						</Vector3>
						<float name="TopParamA">-0.5</float>
						<float name="TopParamB">0.5</float>
						<token name="TopSurface">0</token>
						<token name="TopSurfaceInput">0</token>
						<float name="Transparency">0</float>
						<Vector3 name="Velocity">
							<X>-0.0105104502</X>
							<Y>0.00137971644</Y>
							<Z>0.00617783563</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">2</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>2</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3660">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>53</X>
							<Y>7.10000038</Y>
							<Z>82</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">0</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">2</token>
						<token name="LeftSurfaceInput">0</token>
						<bool name="Locked">false</bool>
						<string name="Name">Smooth Block Model</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.5</float>
						<float name="RightParamB">0.5</float>
						<token name="RightSurface">2</token>
						<token name="RightSurfaceInput">0</token>
						<Vector3 name="RotVelocity">
							<X>0.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</Z>
						</Vector3>
						<float name="TopParamA">-0.5</float>
						<float name="TopParamB">0.5</float>
						<token name="TopSurface">0</token>
						<token name="TopSurfaceInput">0</token>
						<float name="Transparency">0</float>
						<Vector3 name="Velocity">
							<X>-0.0105104502</X>
							<Y>-0.00246511493</Y>
							<Z>0.00519594178</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">2</token>
						<Vector3 name="size">
							<X>2</X>
							<Y>2</Y>
							<Z>2</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3661">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>44</X>
							<Y>3.9000001</Y>
							<Z>86.5</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0144529203</X>
							<Y>0.0110222818</Y>
							<Z>0.00690203998</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3662">
					<Properties>
						<bool name="Anchored">false</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">4</token>
						<token name="BottomSurfaceInput">0</token>
						<int name="BrickColor">194</int>
						<CoordinateFrame name="CFrame">
							<X>36</X>
							<Y>3.9000001</Y>
							<Z>77.5</Z>
							<R00>0</R00>
							<R01>0</R01>
							<R02>1</R02>
							<R10>0</R10>
							<R11>1</R11>
							<R12>0</R12>
							<R20>-1</R20>
							<R21>0</R21>
							<R22>0</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">1</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">false</bool>
						<string name="Name">Smooth Block Model</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.000847632124</X>
							<Y>0.00049094687</Y>
							<Z>-0.00192241569</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.0188714415</X>
							<Y>0.0340302959</Y>
							<Z>0.0108296154</Z>
						</Vector3>
						<bool name="archivable">true</bool>
						<token name="shape">1</token>
						<Vector3 name="size">
							<X>3</X>
							<Y>1.20000005</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
				<Item class="Part" referent="RBX3663">
					<Properties>
						<bool name="Anchored">false</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">199</int>
						<CoordinateFrame name="CFrame">
							<X>37</X>
							<Y>2.89512992</Y>
							<Z>74.0000153</Z>
							<R00>5.04854484e-007</R00>
							<R01>-0.422472358</R01>
							<R02>0.906375766</R02>
							<R10>0.00114088482</R10>
							<R11>-0.90637511</R11>
							<R12>-0.42247209</R12>
							<R20>0.999999285</R20>
							<R21>0.00103426434</R21>
							<R22>0.000481613417</R22>
						</CoordinateFrame>
						<bool name="CanCollide">true</bool>
						<token name="Controller">1</token>
						<bool name="ControllerFlagShown">true</bool>
						<bool name="DraggingV1">false</bool>
						<float name="Elasticity">0.5</float>
						<token name="FormFactor">0</token>
						<float name="Friction">1</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">2</token>
						<bool name="Locked">false</bool>
						<string name="Name">Part</string>
						<float name="Reflectance">0</float>
						<float name="RightParamA">-0.300000012</float>
						<float name="RightParamB">0.300000012</float>
						<token name="RightSurface">7</token>
						<token name="RightSurfaceInput">1</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">0</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">2</token>
						<Vector3 name="size">
							<X>4</X>
							<Y>4</Y>
							<Z>4</Z>
						</Vector3>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX3664">
				<Properties>
					<bool name="Anchored">true</bool>
					<float name="BackParamA">-0.5</float>
					<float name="BackParamB">0.5</float>
					<token name="BackSurface">2</token>
					<token name="BackSurfaceInput">0</token>
					<float name="BottomParamA">-0.5</float>
					<float name="BottomParamB">0.5</float>
					<token name="BottomSurface">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">21</int>
					<CoordinateFrame name="CFrame">
						<X>33</X>
						<Y>9.10000038</Y>
						<Z>82</Z>
						<R00>-0</R00>
						<R01>0</R01>
						<R02>1</R02>
						<R10>-0</R10>
						<R11>1</R11>
						<R12>0</R12>
						<R20>-1</R20>
						<R21>0</R21>
						<R22>0</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">false</bool>
					<string name="Name">Smooth Block Model</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">0</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>6</X>
						<Y>4.4000001</Y>
						<Z>10</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX3665">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX3666">
				<Properties>
					<bool name="Anchored">false</bool>
					<float name="BackParamA">-0.5</float>
					<float name="BackParamB">0.5</float>
					<token name="BackSurface">2</token>
					<token name="BackSurfaceInput">0</token>
					<float name="BottomParamA">-0.5</float>
					<float name="BottomParamB">0.5</float>
					<token name="BottomSurface">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">194</int>
					<CoordinateFrame name="CFrame">
						<X>31</X>
						<Y>5.70000029</Y>
						<Z>82</Z>
						<R00>0</R00>
						<R01>0</R01>
						<R02>1</R02>
						<R10>0</R10>
						<R11>-1</R11>
						<R12>0</R12>
						<R20>1</R20>
						<R21>0</R21>
						<R22>0</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">false</bool>
					<string name="Name">Smooth Block Model</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">0</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>6</X>
						<Y>2</Y>
						<Z>6</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX3667">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Model" referent="RBX3668">
				<Properties>
					<token name="Controller">0</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Model</string>
					<Ref name="PrimaryPart">null</Ref>
					<bool name="archivable">true</bool>
				</Properties>
				<Item class="Model" referent="RBX3669">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Model</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX3670">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Model</string>
							<Ref name="PrimaryPart">null</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Model" referent="RBX3671">
							<Properties>
								<token name="Controller">0</token>
								<bool name="ControllerFlagShown">true</bool>
								<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">Model</string>
								<Ref name="PrimaryPart">null</Ref>
								<bool name="archivable">true</bool>
							</Properties>
							<Item class="Model" referent="RBX3672">
								<Properties>
									<token name="Controller">0</token>
									<bool name="ControllerFlagShown">true</bool>
									<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">Model</string>
									<Ref name="PrimaryPart">null</Ref>
									<bool name="archivable">true</bool>
								</Properties>
								<Item class="Model" referent="RBX3673">
									<Properties>
										<token name="Controller">0</token>
										<bool name="ControllerFlagShown">true</bool>
										<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">Model</string>
										<Ref name="PrimaryPart">null</Ref>
										<bool name="archivable">true</bool>
									</Properties>
									<Item class="Model" referent="RBX3674">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3675">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3676">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3677">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3678">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3679">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3680">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3681">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3682">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3683">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3684">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3685">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3686">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3687">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3688">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3689">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3690">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3691">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3692">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3693">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3694">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3695">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3696">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3697">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3698">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3699">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3700">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3701">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3702">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3703">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3704">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3705">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3706">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3707">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3708">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3709">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3710">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3711">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3712">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3713">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3714">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3715">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3716">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3717">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3718">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3719">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3720">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3721">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3722">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3723">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3724">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3725">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3726">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3727">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3728">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3729">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3730">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3731">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3732">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3733">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3734">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3735">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3736">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3737">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3738">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3739">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3740">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3741">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3742">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3743">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3744">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3745">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3746">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3747">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3748">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3749">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3750">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3751">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3752">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3753">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3754">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3755">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3756">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3757">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3758">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3759">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3760">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3761">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3762">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3763">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3764">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3765">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3766">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3767">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3768">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3769">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3770">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3771">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3772">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3773">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3774">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3775">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3776">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3777">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3778">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3779">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3780">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3781">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3782">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3783">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3784">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3785">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3786">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3787">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3788">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3789">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3790">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3791">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3792">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3793">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3794">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3795">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3796">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3797">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3798">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3799">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3800">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3801">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3802">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3803">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3804">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3805">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3806">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3807">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3808">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3809">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3810">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3811">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3812">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3813">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3814">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3815">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3816">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3817">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3818">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3819">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3820">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3821">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3822">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3823">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3824">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3825">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3826">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3827">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3828">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3829">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3830">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3831">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3832">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3833">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3834">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3835">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3836">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3837">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3838">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3839">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3840">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3841">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3842">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3843">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3844">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3845">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3846">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3847">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3848">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3849">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3850">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3851">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3852">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3853">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3854">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3855">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3856">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3857">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3858">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3859">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3860">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3861">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3862">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3863">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3864">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3865">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3866">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3867">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3868">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3869">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3870">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3871">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3872">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3873">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3874">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3875">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3876">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3877">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3878">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3879">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3880">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3881">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3882">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3883">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3884">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3885">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3886">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3887">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3888">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3889">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3890">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3891">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3892">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3893">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3894">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3895">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3896">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3897">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3898">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3899">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3900">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3901">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3902">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3903">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3904">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3905">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3906">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3907">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3908">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3909">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3910">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3911">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3912">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3913">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3914">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3915">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3916">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3917">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3918">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3919">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3920">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3921">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3922">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3923">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3924">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3925">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3926">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3927">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3928">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3929">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3930">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3931">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3932">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3933">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3934">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3935">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3936">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3937">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3938">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3939">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3940">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3941">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3942">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3943">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3944">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3945">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3946">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3947">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3948">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3949">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3950">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3951">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3952">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3953">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3954">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3955">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3956">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3957">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3958">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3959">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3960">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3961">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3962">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3963">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3964">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3965">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3966">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3967">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3968">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3969">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3970">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3971">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3972">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3973">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3974">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3975">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3976">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3977">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3978">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3979">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3980">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3981">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3982">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3983">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3984">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3985">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3986">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3987">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3988">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX3989">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3990">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3991">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3992">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX3993">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX3994">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX3995">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX3996">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX3997">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3998">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX3999">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4000">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4001">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4002">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4003">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4004">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4005">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4006">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4007">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4008">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4009">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4010">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4011">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4012">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4013">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4014">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4015">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4016">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4017">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4018">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4019">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4020">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4021">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4022">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4023">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4024">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4025">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4026">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4027">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4028">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4029">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4030">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4031">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4032">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4033">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4034">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4035">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4036">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4037">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4038">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4039">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4040">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4041">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4042">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4043">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4044">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4045">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4046">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4047">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4048">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4049">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4050">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4051">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4052">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4053">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4054">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4055">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4056">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4057">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4058">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4059">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4060">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4061">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4062">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4063">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4064">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4065">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4066">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4067">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4068">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4069">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4070">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4071">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4072">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4073">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4074">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4075">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4076">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4077">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4078">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4079">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4080">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4081">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4082">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4083">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4084">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4085">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4086">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4087">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4088">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
									</Item>
								</Item>
							</Item>
						</Item>
					</Item>
				</Item>
				<Item class="Model" referent="RBX4089">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Model</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX4090">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Model</string>
							<Ref name="PrimaryPart">null</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Model" referent="RBX4091">
							<Properties>
								<token name="Controller">0</token>
								<bool name="ControllerFlagShown">true</bool>
								<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">Model</string>
								<Ref name="PrimaryPart">null</Ref>
								<bool name="archivable">true</bool>
							</Properties>
							<Item class="Model" referent="RBX4092">
								<Properties>
									<token name="Controller">0</token>
									<bool name="ControllerFlagShown">true</bool>
									<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">Model</string>
									<Ref name="PrimaryPart">null</Ref>
									<bool name="archivable">true</bool>
								</Properties>
								<Item class="Model" referent="RBX4093">
									<Properties>
										<token name="Controller">0</token>
										<bool name="ControllerFlagShown">true</bool>
										<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">Model</string>
										<Ref name="PrimaryPart">null</Ref>
										<bool name="archivable">true</bool>
									</Properties>
									<Item class="Model" referent="RBX4094">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4095">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4096">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4097">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4098">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4099">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4100">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4101">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4102">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4103">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4104">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4105">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4106">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4107">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4108">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4109">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4110">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4111">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4112">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4113">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4114">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4115">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4116">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4117">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4118">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4119">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4120">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4121">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4122">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4123">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4124">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4125">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4126">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4127">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4128">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4129">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4130">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4131">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4132">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4133">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4134">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4135">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4136">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4137">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4138">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4139">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4140">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4141">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4142">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4143">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4144">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4145">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4146">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4147">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4148">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4149">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4150">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4151">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4152">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4153">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4154">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4155">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4156">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4157">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4158">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4159">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4160">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4161">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4162">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4163">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4164">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4165">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4166">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4167">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4168">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4169">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4170">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4171">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4172">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4173">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4174">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4175">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4176">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4177">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4178">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4179">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4180">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4181">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4182">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4183">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4184">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4185">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4186">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4187">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4188">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4189">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4190">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4191">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4192">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4193">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4194">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4195">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4196">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4197">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4198">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4199">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4200">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4201">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4202">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4203">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4204">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4205">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4206">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4207">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4208">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4209">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4210">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4211">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4212">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4213">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4214">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4215">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4216">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4217">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4218">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4219">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4220">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4221">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4222">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4223">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4224">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4225">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4226">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4227">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4228">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4229">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4230">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4231">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4232">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4233">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4234">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4235">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4236">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4237">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4238">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4239">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4240">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4241">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4242">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4243">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4244">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4245">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4246">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4247">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4248">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4249">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4250">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4251">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4252">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4253">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4254">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4255">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4256">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4257">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4258">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4259">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4260">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4261">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4262">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4263">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4264">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4265">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4266">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4267">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4268">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4269">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4270">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4271">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4272">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4273">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4274">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4275">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4276">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4277">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4278">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4279">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4280">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4281">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4282">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4283">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4284">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4285">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4286">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4287">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4288">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4289">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4290">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4291">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4292">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4293">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4294">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4295">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4296">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4297">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4298">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4299">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4300">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4301">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4302">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4303">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4304">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4305">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4306">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4307">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4308">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4309">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4310">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4311">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4312">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4313">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4314">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4315">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4316">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4317">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4318">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4319">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4320">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4321">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4322">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4323">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4324">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4325">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4326">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4327">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4328">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4329">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4330">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4331">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4332">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4333">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4334">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4335">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4336">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4337">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4338">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4339">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4340">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4341">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4342">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4343">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4344">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4345">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4346">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4347">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4348">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4349">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4350">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4351">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4352">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4353">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4354">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4355">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4356">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4357">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4358">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4359">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4360">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4361">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4362">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4363">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4364">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4365">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4366">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4367">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4368">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4369">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4370">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4371">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4372">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4373">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4374">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4375">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4376">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4377">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4378">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4379">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4380">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4381">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4382">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4383">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4384">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4385">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4386">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4387">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4388">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4389">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4390">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4391">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4392">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4393">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4394">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4395">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4396">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4397">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4398">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4399">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4400">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4401">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4402">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4403">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4404">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4405">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4406">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4407">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4408">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4409">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4410">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4411">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4412">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4413">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4414">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4415">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4416">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4417">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4418">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4419">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4420">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4421">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4422">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4423">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4424">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4425">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4426">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4427">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4428">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4429">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4430">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4431">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4432">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4433">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4434">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4435">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4436">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4437">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4438">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4439">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4440">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4441">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4442">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4443">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4444">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4445">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4446">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4447">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4448">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4449">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4450">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4451">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4452">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4453">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4454">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4455">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4456">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4457">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4458">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4459">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4460">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4461">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4462">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4463">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4464">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4465">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4466">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4467">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4468">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4469">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4470">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4471">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4472">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4473">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4474">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4475">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4476">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4477">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4478">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4479">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4480">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4481">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4482">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4483">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4484">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4485">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4486">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4487">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4488">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4489">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4490">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4491">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4492">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4493">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4494">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4495">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4496">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4497">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4498">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4499">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4500">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4501">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4502">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4503">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4504">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4505">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4506">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4507">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4508">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
									</Item>
								</Item>
							</Item>
						</Item>
					</Item>
				</Item>
				<Item class="Model" referent="RBX4509">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Model</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX4510">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Model</string>
							<Ref name="PrimaryPart">null</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Model" referent="RBX4511">
							<Properties>
								<token name="Controller">0</token>
								<bool name="ControllerFlagShown">true</bool>
								<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">Model</string>
								<Ref name="PrimaryPart">null</Ref>
								<bool name="archivable">true</bool>
							</Properties>
							<Item class="Model" referent="RBX4512">
								<Properties>
									<token name="Controller">0</token>
									<bool name="ControllerFlagShown">true</bool>
									<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">Model</string>
									<Ref name="PrimaryPart">null</Ref>
									<bool name="archivable">true</bool>
								</Properties>
								<Item class="Model" referent="RBX4513">
									<Properties>
										<token name="Controller">0</token>
										<bool name="ControllerFlagShown">true</bool>
										<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">Model</string>
										<Ref name="PrimaryPart">null</Ref>
										<bool name="archivable">true</bool>
									</Properties>
									<Item class="Model" referent="RBX4514">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4515">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4516">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4517">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4518">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4519">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4520">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4521">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4522">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4523">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4524">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4525">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4526">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4527">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4528">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4529">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4530">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4531">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4532">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4533">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4534">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4535">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4536">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4537">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4538">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4539">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4540">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4541">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4542">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4543">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4544">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4545">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4546">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4547">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4548">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4549">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4550">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4551">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4552">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4553">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4554">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4555">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4556">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4557">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4558">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4559">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4560">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4561">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4562">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4563">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4564">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4565">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4566">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4567">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4568">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4569">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4570">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4571">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4572">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4573">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4574">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4575">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4576">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4577">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4578">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4579">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4580">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4581">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4582">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4583">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4584">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4585">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4586">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4587">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4588">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4589">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4590">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4591">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4592">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4593">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4594">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4595">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4596">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4597">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4598">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4599">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4600">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4601">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4602">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4603">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4604">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4605">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4606">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4607">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4608">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4609">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4610">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4611">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4612">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4613">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4614">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4615">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4616">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4617">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4618">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4619">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4620">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4621">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4622">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4623">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4624">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4625">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4626">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4627">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4628">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4629">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4630">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4631">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4632">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4633">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4634">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4635">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4636">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4637">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4638">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4639">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4640">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4641">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4642">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4643">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4644">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4645">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4646">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4647">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4648">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4649">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4650">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4651">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4652">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4653">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4654">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4655">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4656">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4657">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4658">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4659">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4660">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4661">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4662">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4663">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4664">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4665">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4666">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4667">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4668">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4669">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4670">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4671">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4672">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4673">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4674">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4675">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4676">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4677">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4678">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4679">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4680">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4681">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4682">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4683">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4684">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4685">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4686">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4687">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4688">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4689">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4690">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4691">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4692">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4693">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4694">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4695">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4696">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4697">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4698">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4699">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4700">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4701">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4702">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4703">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4704">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4705">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4706">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4707">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4708">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4709">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4710">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4711">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4712">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4713">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4714">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4715">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4716">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4717">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4718">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4719">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4720">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4721">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4722">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4723">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4724">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4725">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4726">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4727">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4728">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4729">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4730">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4731">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4732">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4733">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4734">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4735">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4736">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4737">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4738">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4739">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4740">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4741">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4742">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4743">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4744">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4745">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4746">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4747">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4748">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4749">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4750">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4751">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4752">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4753">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4754">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4755">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4756">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4757">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4758">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4759">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4760">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4761">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4762">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4763">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4764">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4765">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4766">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4767">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4768">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4769">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4770">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4771">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4772">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4773">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4774">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4775">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4776">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4777">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4778">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4779">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4780">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4781">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4782">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4783">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4784">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4785">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4786">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4787">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4788">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4789">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4790">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4791">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4792">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4793">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4794">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4795">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4796">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4797">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4798">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4799">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4800">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4801">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4802">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4803">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4804">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4805">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4806">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4807">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4808">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4809">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4810">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4811">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4812">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4813">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4814">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4815">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4816">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4817">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4818">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4819">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4820">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4821">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4822">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4823">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4824">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4825">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4826">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4827">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4828">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4829">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4830">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4831">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4832">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4833">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4834">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4835">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4836">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4837">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4838">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4839">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4840">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4841">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4842">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4843">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4844">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4845">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4846">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4847">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4848">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4849">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4850">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4851">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4852">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4853">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4854">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4855">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4856">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4857">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4858">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4859">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4860">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4861">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4862">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4863">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4864">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4865">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4866">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4867">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4868">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4869">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4870">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4871">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4872">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4873">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4874">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4875">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4876">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4877">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4878">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4879">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4880">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4881">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4882">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4883">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4884">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4885">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4886">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4887">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4888">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4889">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4890">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4891">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4892">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4893">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4894">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4895">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4896">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4897">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4898">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4899">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4900">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4901">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4902">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4903">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4904">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4905">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4906">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4907">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4908">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4909">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4910">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4911">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4912">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4913">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4914">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4915">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4916">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4917">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4918">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4919">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4920">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4921">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4922">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4923">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4924">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4925">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4926">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4927">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX4928">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
									</Item>
								</Item>
							</Item>
						</Item>
					</Item>
				</Item>
				<Item class="Model" referent="RBX4929">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Model</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX4930">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Model</string>
							<Ref name="PrimaryPart">null</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Model" referent="RBX4931">
							<Properties>
								<token name="Controller">0</token>
								<bool name="ControllerFlagShown">true</bool>
								<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">Model</string>
								<Ref name="PrimaryPart">null</Ref>
								<bool name="archivable">true</bool>
							</Properties>
							<Item class="Model" referent="RBX4932">
								<Properties>
									<token name="Controller">0</token>
									<bool name="ControllerFlagShown">true</bool>
									<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">Model</string>
									<Ref name="PrimaryPart">null</Ref>
									<bool name="archivable">true</bool>
								</Properties>
								<Item class="Model" referent="RBX4933">
									<Properties>
										<token name="Controller">0</token>
										<bool name="ControllerFlagShown">true</bool>
										<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">Model</string>
										<Ref name="PrimaryPart">null</Ref>
										<bool name="archivable">true</bool>
									</Properties>
									<Item class="Model" referent="RBX4934">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4935">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4936">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4937">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4938">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4939">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4940">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4941">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4942">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4943">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4944">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4945">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4946">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4947">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4948">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4949">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4950">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4951">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4952">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4953">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4954">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4955">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4956">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4957">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4958">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4959">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4960">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4961">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4962">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4963">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4964">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4965">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4966">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4967">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4968">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4969">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4970">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4971">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4972">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4973">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4974">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4975">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4976">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4977">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4978">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4979">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4980">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4981">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4982">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4983">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4984">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4985">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4986">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4987">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4988">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX4989">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX4990">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX4991">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4992">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4993">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4994">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4995">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX4996">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX4997">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX4998">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX4999">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5000">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5001">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5002">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5003">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5004">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5005">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5006">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5007">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5008">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5009">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5010">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5011">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5012">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5013">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5014">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5015">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5016">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5017">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5018">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5019">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5020">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5021">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5022">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5023">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5024">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5025">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5026">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5027">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5028">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5029">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5030">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5031">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5032">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5033">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5034">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5035">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5036">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5037">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5038">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5039">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5040">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5041">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5042">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5043">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5044">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5045">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5046">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5047">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5048">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5049">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5050">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5051">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5052">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5053">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5054">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5055">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5056">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5057">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5058">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5059">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5060">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5061">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5062">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5063">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5064">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5065">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5066">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5067">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5068">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5069">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5070">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5071">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5072">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5073">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5074">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5075">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5076">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5077">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5078">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5079">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5080">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5081">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5082">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5083">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5084">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5085">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5086">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5087">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5088">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5089">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5090">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5091">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5092">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5093">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5094">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5095">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5096">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5097">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5098">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5099">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5100">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5101">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5102">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5103">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5104">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5105">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5106">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5107">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5108">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5109">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5110">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5111">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5112">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5113">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5114">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5115">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5116">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5117">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5118">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5119">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5120">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5121">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5122">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5123">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5124">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5125">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5126">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5127">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5128">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5129">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5130">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5131">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5132">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5133">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5134">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5135">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5136">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5137">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5138">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5139">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5140">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5141">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5142">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5143">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5144">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5145">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5146">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5147">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5148">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5149">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5150">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5151">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5152">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5153">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5154">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5155">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5156">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5157">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5158">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5159">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5160">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5161">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5162">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5163">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5164">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5165">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5166">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5167">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5168">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5169">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5170">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5171">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5172">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5173">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5174">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5175">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5176">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5177">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5178">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5179">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5180">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5181">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5182">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5183">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5184">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5185">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5186">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5187">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5188">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5189">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5190">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5191">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5192">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5193">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5194">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5195">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5196">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5197">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5198">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5199">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5200">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5201">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5202">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5203">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5204">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5205">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5206">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5207">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5208">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5209">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5210">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5211">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5212">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5213">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5214">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5215">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5216">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5217">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5218">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5219">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5220">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5221">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5222">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5223">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5224">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5225">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5226">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5227">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5228">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5229">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5230">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5231">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5232">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5233">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5234">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5235">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5236">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5237">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5238">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5239">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5240">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5241">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5242">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5243">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5244">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5245">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5246">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5247">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5248">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5249">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5250">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5251">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5252">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5253">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5254">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5255">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5256">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5257">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5258">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5259">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5260">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5261">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5262">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5263">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5264">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5265">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5266">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5267">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5268">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5269">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5270">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5271">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5272">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5273">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5274">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5275">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5276">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5277">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5278">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5279">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5280">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5281">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5282">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5283">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5284">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5285">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5286">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5287">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5288">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5289">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5290">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5291">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5292">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5293">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5294">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5295">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5296">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5297">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5298">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5299">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5300">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5301">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5302">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5303">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5304">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5305">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5306">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5307">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5308">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5309">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5310">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5311">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5312">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5313">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5314">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5315">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5316">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5317">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5318">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5319">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5320">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5321">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5322">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5323">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5324">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5325">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5326">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5327">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5328">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5329">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5330">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5331">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5332">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5333">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5334">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5335">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5336">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5337">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5338">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5339">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5340">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5341">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5342">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX5343">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX5344">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX5345">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX5346">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX5347">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX5348">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
									</Item>
								</Item>
							</Item>
						</Item>
					</Item>
				</Item>
				<Item class="Model" referent="RBX5349">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Model</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX5350">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Model</string>
							<Ref name="PrimaryPart">null</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Model" referent="RBX5351">
							<Properties>
								<token name="Controller">0</token>
								<bool name="ControllerFlagShown">true</bool>
								<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">Model</string>
								<Ref name="PrimaryPart">null</Ref>
								<bool name="archivable">true</bool>
							</Properties>
							<Item class="Model" referent="RBX5352">
								<Properties>
									<token name="Controller">0</token>
									<bool name="ControllerFlagShown">true</bool>
									<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">Model</string>
									<Ref name="PrimaryPart">null</Ref>
									<bool name="archivable">true</bool>
								</Properties>
								<Item class="Model" referent="RBX5353">
									<Properties>
										<token name="Controller">0</token>
										<bool name="ControllerFlagShown">true</bool>
										<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">Model</string>
										<Ref name="PrimaryPart">null</Ref>
										<bool name="archivable">true</bool>
									</Properties>
									<Item class="Model" referent="RBX5354">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5355">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5356">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5357">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5358">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5359">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5360">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5361">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5362">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5363">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5364">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5365">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5366">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5367">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5368">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5369">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5370">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5371">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5372">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5373">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5374">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5375">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5376">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5377">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5378">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5379">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5380">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5381">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5382">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5383">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5384">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5385">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5386">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5387">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5388">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5389">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5390">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5391">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5392">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5393">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5394">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5395">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5396">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5397">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5398">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5399">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5400">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5401">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5402">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5403">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5404">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5405">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5406">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5407">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5408">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5409">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5410">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5411">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5412">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5413">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5414">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5415">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5416">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5417">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5418">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5419">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5420">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5421">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5422">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5423">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5424">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5425">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5426">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5427">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5428">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5429">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5430">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5431">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5432">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5433">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5434">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5435">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5436">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5437">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5438">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5439">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5440">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5441">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5442">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5443">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5444">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5445">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5446">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5447">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5448">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5449">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5450">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5451">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5452">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5453">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5454">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5455">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5456">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5457">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5458">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5459">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5460">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5461">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5462">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5463">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5464">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5465">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5466">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5467">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5468">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5469">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5470">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5471">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5472">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5473">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5474">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5475">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5476">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5477">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5478">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5479">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5480">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5481">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5482">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5483">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5484">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5485">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5486">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5487">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5488">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5489">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5490">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5491">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5492">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5493">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5494">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5495">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5496">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5497">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5498">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5499">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5500">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5501">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5502">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5503">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5504">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5505">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5506">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5507">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5508">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5509">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5510">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5511">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5512">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5513">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5514">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5515">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5516">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5517">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5518">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5519">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5520">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5521">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5522">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5523">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5524">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5525">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5526">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5527">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5528">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5529">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5530">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5531">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5532">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5533">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5534">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5535">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5536">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5537">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5538">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5539">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5540">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5541">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5542">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5543">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5544">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5545">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5546">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5547">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5548">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5549">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5550">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5551">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5552">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5553">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5554">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5555">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5556">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5557">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5558">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5559">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5560">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5561">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5562">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5563">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5564">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5565">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5566">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5567">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5568">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5569">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5570">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5571">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5572">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5573">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5574">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5575">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5576">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5577">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5578">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5579">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5580">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5581">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5582">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5583">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5584">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5585">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5586">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5587">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5588">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5589">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5590">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5591">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5592">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5593">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5594">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5595">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5596">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5597">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5598">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5599">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5600">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5601">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5602">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5603">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5604">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5605">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5606">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5607">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5608">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5609">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5610">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5611">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5612">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5613">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5614">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5615">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5616">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5617">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5618">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5619">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5620">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5621">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5622">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5623">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5624">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5625">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5626">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5627">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5628">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5629">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5630">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5631">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5632">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5633">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5634">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5635">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5636">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5637">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5638">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5639">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5640">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5641">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5642">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5643">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5644">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5645">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5646">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5647">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5648">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5649">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5650">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5651">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5652">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5653">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5654">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5655">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5656">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5657">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5658">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5659">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5660">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5661">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5662">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5663">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5664">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5665">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5666">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5667">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5668">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5669">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5670">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5671">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5672">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5673">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5674">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5675">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5676">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5677">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5678">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5679">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5680">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5681">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5682">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5683">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5684">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5685">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5686">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5687">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5688">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5689">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5690">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5691">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5692">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5693">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5694">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5695">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5696">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5697">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5698">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5699">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5700">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5701">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5702">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5703">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5704">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5705">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5706">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5707">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5708">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5709">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5710">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5711">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5712">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5713">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5714">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5715">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5716">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5717">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5718">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5719">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5720">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5721">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5722">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5723">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5724">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5725">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5726">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5727">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5728">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5729">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5730">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5731">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5732">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5733">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5734">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5735">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5736">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5737">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5738">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5739">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5740">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5741">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5742">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5743">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5744">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5745">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5746">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5747">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5748">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5749">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5750">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5751">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5752">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5753">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5754">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5755">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5756">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5757">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5758">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5759">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5760">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5761">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5762">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX5763">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX5764">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX5765">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX5766">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX5767">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX5768">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
									</Item>
								</Item>
							</Item>
						</Item>
					</Item>
				</Item>
				<Item class="Model" referent="RBX5769">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Model</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX5770">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Model</string>
							<Ref name="PrimaryPart">null</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Model" referent="RBX5771">
							<Properties>
								<token name="Controller">0</token>
								<bool name="ControllerFlagShown">true</bool>
								<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">Model</string>
								<Ref name="PrimaryPart">null</Ref>
								<bool name="archivable">true</bool>
							</Properties>
							<Item class="Model" referent="RBX5772">
								<Properties>
									<token name="Controller">0</token>
									<bool name="ControllerFlagShown">true</bool>
									<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">Model</string>
									<Ref name="PrimaryPart">null</Ref>
									<bool name="archivable">true</bool>
								</Properties>
								<Item class="Model" referent="RBX5773">
									<Properties>
										<token name="Controller">0</token>
										<bool name="ControllerFlagShown">true</bool>
										<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">Model</string>
										<Ref name="PrimaryPart">null</Ref>
										<bool name="archivable">true</bool>
									</Properties>
									<Item class="Model" referent="RBX5774">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5775">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5776">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5777">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5778">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5779">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5780">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5781">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5782">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5783">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5784">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5785">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5786">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5787">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5788">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5789">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5790">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5791">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5792">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5793">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5794">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5795">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5796">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5797">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5798">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5799">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5800">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5801">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5802">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5803">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5804">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5805">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5806">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5807">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5808">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5809">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5810">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5811">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5812">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5813">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5814">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5815">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5816">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5817">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5818">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5819">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5820">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5821">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5822">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5823">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5824">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5825">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5826">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5827">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5828">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5829">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5830">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5831">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5832">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5833">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5834">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5835">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5836">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5837">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5838">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5839">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5840">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5841">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5842">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5843">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5844">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5845">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5846">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5847">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5848">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5849">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5850">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5851">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5852">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5853">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5854">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5855">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5856">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5857">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5858">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5859">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5860">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5861">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5862">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5863">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5864">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5865">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5866">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5867">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5868">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5869">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5870">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5871">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5872">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5873">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5874">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5875">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5876">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5877">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5878">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5879">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5880">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5881">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5882">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5883">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5884">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5885">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5886">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5887">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5888">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5889">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5890">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5891">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5892">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5893">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5894">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5895">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5896">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5897">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5898">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5899">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5900">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5901">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5902">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5903">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5904">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5905">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5906">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5907">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5908">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5909">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5910">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5911">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5912">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5913">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5914">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5915">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5916">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5917">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5918">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5919">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5920">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5921">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5922">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5923">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5924">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5925">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5926">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5927">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5928">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5929">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5930">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5931">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5932">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5933">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5934">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5935">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5936">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5937">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5938">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5939">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5940">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5941">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5942">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5943">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5944">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5945">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5946">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5947">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5948">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5949">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5950">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5951">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5952">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5953">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5954">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5955">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5956">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5957">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5958">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5959">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5960">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5961">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5962">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5963">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5964">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5965">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5966">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5967">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5968">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5969">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5970">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5971">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5972">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5973">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5974">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5975">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5976">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5977">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5978">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5979">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5980">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5981">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5982">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5983">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5984">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5985">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5986">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5987">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5988">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5989">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX5990">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5991">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5992">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5993">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX5994">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX5995">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX5996">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX5997">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX5998">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX5999">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6000">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6001">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6002">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6003">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6004">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6005">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6006">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6007">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6008">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6009">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6010">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6011">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6012">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6013">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6014">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6015">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6016">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6017">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6018">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6019">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6020">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6021">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6022">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6023">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6024">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6025">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6026">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6027">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6028">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6029">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6030">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6031">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6032">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6033">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6034">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6035">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6036">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6037">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6038">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6039">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6040">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6041">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6042">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6043">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6044">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6045">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6046">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6047">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6048">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6049">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6050">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6051">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6052">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6053">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6054">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6055">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6056">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6057">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6058">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6059">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6060">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6061">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6062">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6063">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6064">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6065">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6066">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6067">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6068">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6069">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6070">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6071">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6072">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6073">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6074">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6075">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6076">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6077">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6078">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6079">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6080">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6081">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6082">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6083">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6084">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6085">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6086">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6087">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6088">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6089">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6090">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6091">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6092">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6093">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6094">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6095">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6096">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6097">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6098">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6099">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6100">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6101">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6102">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6103">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6104">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6105">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6106">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6107">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6108">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6109">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6110">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6111">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6112">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6113">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6114">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6115">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6116">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6117">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6118">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6119">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6120">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6121">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6122">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6123">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6124">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6125">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6126">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6127">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6128">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6129">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6130">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6131">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6132">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6133">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6134">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6135">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6136">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6137">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6138">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6139">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6140">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6141">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6142">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6143">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6144">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6145">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6146">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6147">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6148">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6149">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6150">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6151">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6152">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6153">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6154">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6155">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6156">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6157">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6158">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6159">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6160">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6161">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6162">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6163">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6164">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6165">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6166">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6167">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6168">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6169">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6170">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6171">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6172">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6173">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6174">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6175">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6176">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6177">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6178">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6179">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6180">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6181">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6182">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX6183">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX6184">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX6185">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX6186">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX6187">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX6188">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
									</Item>
								</Item>
							</Item>
						</Item>
					</Item>
				</Item>
				<Item class="Model" referent="RBX6189">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Model</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX6190">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Model</string>
							<Ref name="PrimaryPart">null</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Model" referent="RBX6191">
							<Properties>
								<token name="Controller">0</token>
								<bool name="ControllerFlagShown">true</bool>
								<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">Model</string>
								<Ref name="PrimaryPart">null</Ref>
								<bool name="archivable">true</bool>
							</Properties>
							<Item class="Model" referent="RBX6192">
								<Properties>
									<token name="Controller">0</token>
									<bool name="ControllerFlagShown">true</bool>
									<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">Model</string>
									<Ref name="PrimaryPart">null</Ref>
									<bool name="archivable">true</bool>
								</Properties>
								<Item class="Model" referent="RBX6193">
									<Properties>
										<token name="Controller">0</token>
										<bool name="ControllerFlagShown">true</bool>
										<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">Model</string>
										<Ref name="PrimaryPart">null</Ref>
										<bool name="archivable">true</bool>
									</Properties>
									<Item class="Model" referent="RBX6194">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6195">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6196">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6197">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6198">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6199">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6200">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6201">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6202">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6203">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6204">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6205">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6206">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6207">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6208">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6209">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6210">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6211">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6212">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6213">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6214">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6215">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6216">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6217">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6218">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6219">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6220">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6221">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6222">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6223">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6224">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6225">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6226">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6227">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6228">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6229">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6230">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6231">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6232">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6233">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6234">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6235">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6236">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6237">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6238">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6239">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6240">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6241">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6242">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6243">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6244">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6245">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6246">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6247">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6248">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6249">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6250">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6251">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6252">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6253">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6254">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6255">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6256">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6257">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6258">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6259">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6260">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6261">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6262">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6263">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6264">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6265">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6266">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6267">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6268">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6269">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6270">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6271">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6272">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6273">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6274">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6275">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6276">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6277">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6278">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6279">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6280">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6281">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6282">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6283">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6284">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6285">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6286">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6287">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6288">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6289">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6290">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6291">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6292">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6293">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6294">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6295">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6296">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6297">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6298">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6299">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6300">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6301">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6302">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6303">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6304">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6305">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6306">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6307">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6308">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6309">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6310">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6311">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6312">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6313">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6314">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6315">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6316">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6317">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6318">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6319">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6320">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6321">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6322">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6323">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6324">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6325">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6326">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6327">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6328">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6329">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6330">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6331">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6332">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6333">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6334">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6335">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6336">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6337">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6338">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6339">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6340">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6341">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6342">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6343">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6344">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6345">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6346">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6347">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6348">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6349">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6350">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6351">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6352">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6353">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6354">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6355">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6356">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6357">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6358">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6359">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6360">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6361">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6362">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6363">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6364">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6365">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6366">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6367">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6368">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6369">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6370">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6371">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6372">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6373">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6374">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6375">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6376">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6377">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6378">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6379">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6380">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6381">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6382">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6383">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6384">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6385">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6386">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6387">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6388">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6389">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6390">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6391">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6392">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6393">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6394">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6395">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6396">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6397">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6398">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6399">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6400">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6401">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6402">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6403">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6404">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6405">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6406">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6407">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6408">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6409">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6410">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6411">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6412">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6413">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6414">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6415">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6416">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6417">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6418">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6419">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6420">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6421">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6422">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6423">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6424">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6425">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6426">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6427">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6428">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6429">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6430">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6431">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6432">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6433">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6434">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6435">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6436">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6437">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6438">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6439">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6440">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6441">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6442">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6443">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6444">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6445">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6446">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6447">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6448">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6449">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6450">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6451">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6452">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6453">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6454">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6455">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6456">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6457">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6458">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6459">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6460">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6461">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6462">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6463">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6464">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6465">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6466">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6467">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6468">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6469">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6470">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6471">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6472">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6473">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6474">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6475">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6476">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6477">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6478">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6479">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6480">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6481">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6482">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6483">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6484">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6485">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6486">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6487">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6488">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6489">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6490">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6491">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6492">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6493">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6494">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6495">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6496">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6497">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6498">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6499">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6500">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6501">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6502">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6503">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6504">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6505">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6506">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6507">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6508">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6509">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6510">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6511">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6512">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6513">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6514">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6515">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6516">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6517">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6518">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6519">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6520">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6521">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6522">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6523">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6524">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6525">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6526">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6527">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6528">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6529">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6530">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6531">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6532">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6533">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6534">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6535">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6536">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6537">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6538">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6539">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6540">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6541">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6542">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6543">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6544">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6545">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6546">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6547">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6548">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6549">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6550">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6551">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6552">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6553">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6554">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6555">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6556">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6557">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6558">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6559">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6560">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6561">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6562">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6563">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6564">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6565">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6566">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6567">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6568">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6569">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6570">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6571">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6572">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6573">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6574">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6575">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6576">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6577">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6578">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6579">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6580">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6581">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6582">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6583">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6584">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6585">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6586">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6587">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6588">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6589">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6590">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6591">
											<Properties>
												<token name="Controller">7</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">King Boo</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
											<Item class="Model" referent="RBX6592">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">test</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6593">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">Bowser (HP 300)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6594">
														<Properties>
															<float name="Health">0</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">300</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6595">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Script</string>
															<string name="Source">local larm = script.Parent:FindFirstChild(&quot;Left Arm&quot;)
local rarm = script.Parent:FindFirstChild(&quot;Right Arm&quot;)

function findNearestTorso(pos)
	local list = game.Workspace:children()
	local torso = nil
	local dist = 100
	local temp = nil
	local human = nil
	local temp2 = nil
	for x = 1, #list do
		temp2 = list[x]
		if (temp2.className == &quot;Model&quot;) and (temp2 ~= script.Parent) then
			temp = temp2:findFirstChild(&quot;Torso&quot;)
			human = temp2:findFirstChild(&quot;Humanoid&quot;)
			if (temp ~= nil) and (human ~= nil) and (human.Health &gt; 0) then
				if (temp.Position - pos).magnitude &lt; dist then
					torso = temp
					dist = (temp.Position - pos).magnitude
				end
			end
		end
	end
	return torso
end

function Hit(hit)
	local human = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if human ~= nil then
		human.Health = 0
	end
end

larm.Touched:connect(Hit)
rarm.Touched:connect(Hit)

while true do
	wait(0.1)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.Humanoid:MoveTo(target.Position, target)
	end
end</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6596">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
											<Item class="Model" referent="RBX6597">
												<Properties>
													<token name="Controller">0</token>
													<bool name="ControllerFlagShown">true</bool>
													<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">Model</string>
													<Ref name="PrimaryPart">null</Ref>
													<bool name="archivable">true</bool>
												</Properties>
												<Item class="Model" referent="RBX6598">
													<Properties>
														<token name="Controller">0</token>
														<bool name="ControllerFlagShown">true</bool>
														<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">King Boo (HP100)</string>
														<Ref name="PrimaryPart">null</Ref>
														<bool name="archivable">true</bool>
													</Properties>
													<Item class="Humanoid" referent="RBX6599">
														<Properties>
															<float name="Health">100</float>
															<bool name="Jump">false</bool>
															<float name="MaxHealth">100</float>
															<string name="Name">Humanoid</string>
															<bool name="Sit">false</bool>
															<bool name="Strafe">false</bool>
															<Vector3 name="TargetPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<Vector3 name="WalkDirection">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<float name="WalkRotationalVelocity">0</float>
															<Ref name="WalkToPart">null</Ref>
															<Vector3 name="WalkToPoint">
																<X>0</X>
																<Y>0</Y>
																<Z>0</Z>
															</Vector3>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
													<Item class="Script" referent="RBX6600">
														<Properties>
															<bool name="Disabled">false</bool>
															<Content name="LinkedSource"><null></null></Content>
															<string name="Name">Animate</string>
															<string name="Source">function waitForChild(parent, childName)
	while true do
		local child = parent:findFirstChild(childName)
		if child then
			return child
		end
		parent.ChildAdded:wait()
	end
end

----------------------------- ANIMATION

-- declarations

local Figure = script.Parent
local Torso = waitForChild(Figure, &quot;Torso&quot;)
local RightShoulder = waitForChild(Torso, &quot;Right Shoulder&quot;)
local LeftShoulder = waitForChild(Torso, &quot;Left Shoulder&quot;)
local RightHip = waitForChild(Torso, &quot;Right Hip&quot;)
local LeftHip = waitForChild(Torso, &quot;Left Hip&quot;)
local Neck = waitForChild(Torso, &quot;Neck&quot;)
local Humanoid = waitForChild(Figure, &quot;Humanoid&quot;)
local pose = &quot;Standing&quot;

local toolAnim = &quot;None&quot;
local toolAnimTime = 0

local isSeated = false

-- functions

function onRunning(speed)
	if isSeated then return end

	if speed&gt;0 then
		pose = &quot;Running&quot;
	else
		pose = &quot;Standing&quot;
	end
end

function onDied()
	pose = &quot;Dead&quot;
end

function onJumping()
	isSeated = false
	pose = &quot;Jumping&quot;
end

function onClimbing()
	pose = &quot;Climbing&quot;
end

function onGettingUp()
	pose = &quot;GettingUp&quot;
end

function onFreeFall()
	pose = &quot;FreeFall&quot;
end

function onFallingDown()
	pose = &quot;FallingDown&quot;
end

function onSeated()
	isSeated = true
	pose = &quot;Seated&quot;
	print(&quot;Seated&quot;)
end



function moveJump()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 3.14
	LeftShoulder.DesiredAngle = -3.14
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveFreeFall()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 1
	LeftShoulder.DesiredAngle = -1
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end


function moveClimb()
	RightShoulder.MaxVelocity = 0.5
	LeftShoulder.MaxVelocity = 0.5
	RightShoulder.DesiredAngle = 0.78
	LeftShoulder.DesiredAngle = -0.78
	RightHip.DesiredAngle = 0
	LeftHip.DesiredAngle = 0
end

function moveSit()
	print(&quot;Move Sit&quot;)
	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	RightShoulder.DesiredAngle = 3.14 /2
	LeftShoulder.DesiredAngle = -3.14 /2
	RightHip.DesiredAngle = 3.14 /2
	LeftHip.DesiredAngle = -3.14 /2
end

function getTool()
	
	kidTable = Figure:children()
	if (kidTable ~= nil) then
		numKids = #kidTable
		for i=1,numKids do
			if (kidTable[i].className == &quot;Tool&quot;) then return kidTable[i] end
		end
	end
	
	return nil
end

function getToolAnim(tool)

	c = tool:children()
	for i=1,#c do
		if (c[i].Name == &quot;toolanim&quot; and c[i].className == &quot;StringValue&quot;) then
			return c[i]
		end
	end
	return nil
end

function animateTool()
	
	if (toolAnim == &quot;None&quot;) then
		RightShoulder.DesiredAngle = 1.57
		return
	end

	if (toolAnim == &quot;Slash&quot;) then
		RightShoulder.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 0.78
		return
	end

	if (toolAnim == &quot;Lunge&quot;) then
		RightShoulder.MaxVelocity = 0.5
		LeftShoulder.MaxVelocity = 0.5
		RightHip.MaxVelocity = 0.5
		LeftHip.MaxVelocity = 0.5
		RightShoulder.DesiredAngle = 1.57
		LeftShoulder.DesiredAngle = 1.0
		RightHip.DesiredAngle = 1.57
		LeftHip.DesiredAngle = 1.0
		return
	end
end

function move(time)
	local amplitude
	local frequency

	if (pose == &quot;Jumping&quot;) then
		moveJump()
		return
	end

	if (pose == &quot;FreeFall&quot;) then
		moveFreeFall()
		return
	end

	if (pose == &quot;Climbing&quot;) then
		moveClimb()
		return
	end

	if (pose == &quot;Seated&quot;) then
		moveSit()
		return
	end


	RightShoulder.MaxVelocity = 0.15
	LeftShoulder.MaxVelocity = 0.15
	if (pose == &quot;Running&quot;) then
		amplitude = 0.4
		frequency = 9
	else
		amplitude = 0.1
		frequency = 1
	end

	desiredAngle = amplitude * math.sin(time*frequency)

	RightShoulder.DesiredAngle = 1.57
	LeftShoulder.DesiredAngle = -1.57
	RightHip.DesiredAngle = -desiredAngle
	LeftHip.DesiredAngle = -desiredAngle


	local tool = getTool()

	if tool ~= nil then
	
		animStringValueObject = getToolAnim(tool)

		if animStringValueObject ~= nil then
			toolAnim = animStringValueObject.Value
			-- message recieved, delete StringValue
			animStringValueObject.Parent = nil
			toolAnimTime = time + .3
		end

		if time &gt; toolAnimTime then
			toolAnimTime = 0
			toolAnim = &quot;None&quot;
		end

		animateTool()

		
	else
		toolAnim = &quot;None&quot;
		toolAnimTime = 0
	end
end


-- connect events

Humanoid.Died:connect(onDied)
Humanoid.Running:connect(onRunning)
Humanoid.Jumping:connect(onJumping)
Humanoid.Climbing:connect(onClimbing)
Humanoid.GettingUp:connect(onGettingUp)
Humanoid.FreeFalling:connect(onFreeFall)
Humanoid.FallingDown:connect(onFallingDown)
Humanoid.Seated:connect(onSeated)

-- main program

local nextTime = 0
local runService = game:service(&quot;RunService&quot;);

while Figure.Parent~=nil do
	time = runService.Stepped:wait()
	if time &gt; nextTime then
		move(time)
		nextTime = time + 0.1
	end
end
</string>
															<bool name="archivable">true</bool>
														</Properties>
													</Item>
												</Item>
											</Item>
										</Item>
									</Item>
									<Item class="Model" referent="RBX6601">
										<Properties>
											<token name="Controller">0</token>
											<bool name="ControllerFlagShown">true</bool>
											<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">Model</string>
											<Ref name="PrimaryPart">null</Ref>
											<bool name="archivable">true</bool>
										</Properties>
										<Item class="Model" referent="RBX6602">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX6603">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX6604">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX6605">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX6606">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX6607">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
										<Item class="Model" referent="RBX6608">
											<Properties>
												<token name="Controller">0</token>
												<bool name="ControllerFlagShown">true</bool>
												<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">Model</string>
												<Ref name="PrimaryPart">null</Ref>
												<bool name="archivable">true</bool>
											</Properties>
										</Item>
									</Item>
								</Item>
							</Item>
						</Item>
					</Item>
				</Item>
			</Item>
		</Item>
		<Item class="Model" referent="RBX6609">
			<Properties>
				<token name="Controller">0</token>
				<bool name="ControllerFlagShown">true</bool>
				<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">Model</string>
				<Ref name="PrimaryPart">RBX6610</Ref>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Model" referent="RBX6611">
				<Properties>
					<token name="Controller">0</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Station1</string>
					<Ref name="PrimaryPart">RBX6610</Ref>
					<bool name="archivable">true</bool>
				</Properties>
				<Item class="Model" referent="RBX6612">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Platform</string>
						<Ref name="PrimaryPart">RBX6613</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Part" referent="RBX6613">
						<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">23</int>
							<CoordinateFrame name="CFrame">
								<X>-21.4932594</X>
								<Y>8.81173706</Y>
								<Z>94.3257446</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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">0</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>35</X>
								<Y>1.20000005</Y>
								<Z>1</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6614">
						<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">23</int>
							<CoordinateFrame name="CFrame">
								<X>-14.4932594</X>
								<Y>8.81144714</Y>
								<Z>94.3251495</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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">0</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>35</X>
								<Y>1.20000005</Y>
								<Z>1</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6615">
						<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">23</int>
							<CoordinateFrame name="CFrame">
								<X>-20.4930458</X>
								<Y>14.0116959</Y>
								<Z>94.3251343</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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">0</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>35</X>
								<Y>1.20000005</Y>
								<Z>1</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6616">
						<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">23</int>
							<CoordinateFrame name="CFrame">
								<X>-15.4930458</X>
								<Y>14.0114899</Y>
								<Z>94.324707</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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">0</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>35</X>
								<Y>1.20000005</Y>
								<Z>1</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6617">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.9912758</X>
								<Y>8.21396637</Y>
								<Z>117.825508</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>4</X>
								<Y>15.6000004</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6618">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.9904175</X>
								<Y>8.21497345</Y>
								<Z>127.825508</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>2</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6619">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.9903831</X>
								<Y>7.01508045</Y>
								<Z>128.825623</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>2</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6620">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.9905243</X>
								<Y>11.8146706</Y>
								<Z>124.825142</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>2</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6621">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.9904556</X>
								<Y>9.41487122</Y>
								<Z>126.825386</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>2</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6622">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.99049</X>
								<Y>10.6147728</Y>
								<Z>125.825264</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>2</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6623">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.9903107</X>
								<Y>4.61528158</Y>
								<Z>130.825867</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>2</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6624">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.9903488</X>
								<Y>5.81517935</Y>
								<Z>129.825745</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>2</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6625">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.9902763</X>
								<Y>3.41538048</Y>
								<Z>131.825989</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>2</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6626">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.990242</X>
								<Y>2.21548271</Y>
								<Z>132.826111</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>2</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6627">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.9902039</X>
								<Y>1.01558375</Y>
								<Z>133.826233</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>2</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6628">
						<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">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.9910965</X>
								<Y>16.6137638</Y>
								<Z>115.824661</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>8</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6629">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.9906693</X>
								<Y>16.6142673</Y>
								<Z>120.824661</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>2</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6630">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.9906311</X>
								<Y>15.4143677</Y>
								<Z>121.824783</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>2</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6631">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.9905968</X>
								<Y>14.2144699</Y>
								<Z>122.824905</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>2</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
					<Item class="Part" referent="RBX6632">
						<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">4</token>
							<token name="BottomSurfaceInput">0</token>
							<int name="BrickColor">194</int>
							<CoordinateFrame name="CFrame">
								<X>-17.9905624</X>
								<Y>13.0145683</Y>
								<Z>123.82502</Z>
								<R00>-8.55757753e-005</R00>
								<R01>4.16542644e-005</R01>
								<R02>1</R02>
								<R10>-0.000100893842</R10>
								<R11>1</R11>
								<R12>-4.16629009e-005</R12>
								<R20>-1</R20>
								<R21>-0.000100897407</R21>
								<R22>-8.55715698e-005</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">1</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">false</bool>
							<string name="Name">Smooth Block Model</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>2</X>
								<Y>1.20000005</Y>
								<Z>4</Z>
							</Vector3>
						</Properties>
					</Item>
				</Item>
				<Item class="Model" referent="RBX6633">
					<Properties>
						<token name="Controller">0</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Plane</string>
						<Ref name="PrimaryPart">RBX6610</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Model" referent="RBX6634">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">Parts</string>
							<Ref name="PrimaryPart">RBX6610</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Part" referent="RBX6610">
							<Properties>
								<bool name="Anchored">false</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">194</int>
								<CoordinateFrame name="CFrame">
									<X>-17.9898891</X>
									<Y>9.92657852</Y>
									<Z>103.020706</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Engine</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.228821278</X>
									<Y>0.0955519825</Y>
									<Z>0.0389623567</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>8</X>
									<Y>1.20000005</Y>
									<Z>16</Z>
								</Vector3>
							</Properties>
							<Item class="BodyPosition" referent="RBX6635">
								<Properties>
									<float name="D">1250</float>
									<string name="Name">BodyPosition</string>
									<float name="P">10000</float>
									<bool name="archivable">true</bool>
									<Vector3 name="maxForce">
										<X>0</X>
										<Y>0</Y>
										<Z>0</Z>
									</Vector3>
									<Vector3 name="position">
										<X>-1.5</X>
										<Y>3</Y>
										<Z>-48</Z>
									</Vector3>
								</Properties>
							</Item>
							<Item class="BodyGyro" referent="RBX6636">
								<Properties>
									<float name="D">500</float>
									<string name="Name">BodyGyro</string>
									<float name="P">3000</float>
									<bool name="archivable">true</bool>
									<CoordinateFrame name="cframe">
										<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>
									<Vector3 name="maxTorque">
										<X>0</X>
										<Y>0</Y>
										<Z>0</Z>
									</Vector3>
								</Properties>
							</Item>
							<Item class="Script" referent="RBX6637">
								<Properties>
									<bool name="Disabled">true</bool>
									<Content name="LinkedSource"><null></null></Content>
									<string name="Name">Script</string>
									<string name="Source">model = script.Parent.Parent.Parent
backup = model:clone()
local debounce = false

function onTouch(part)
	if (part.Name == &quot;Safe&quot;) and (debounce == false) and (script.Parent.Count.Value == 0) then
	debounce = true
	wait(2)
	model = backup:clone()
	model.Parent = game.Workspace
	model:makeJoints()
	script.Parent.Count.Value = 1
	debounce = false
	end
end 
script.Parent.Touched:connect(onTouch)</string>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
							<Item class="IntValue" referent="RBX6638">
								<Properties>
									<string name="Name">Count</string>
									<int name="Value">0</int>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Seat" referent="RBX6639">
							<Properties>
								<bool name="Anchored">false</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">4</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">21</int>
								<CoordinateFrame name="CFrame">
									<X>-17.9914303</X>
									<Y>10.7137995</Y>
									<Z>106.024086</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">false</bool>
								<string name="Name">Seat</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</Z>
								</Vector3>
								<float name="TopParamA">-0.5</float>
								<float name="TopParamB">0.5</float>
								<token name="TopSurface">2</token>
								<token name="TopSurfaceInput">0</token>
								<float name="Transparency">0</float>
								<Vector3 name="Velocity">
									<X>-0.0839498565</X>
									<Y>0.179632276</Y>
									<Z>0.0169982668</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>2</X>
									<Y>0.400000006</Y>
									<Z>2</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="Part" referent="RBX6640">
							<Properties>
								<bool name="Anchored">false</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">1</int>
								<CoordinateFrame name="CFrame">
									<X>-13.4903288</X>
									<Y>9.90644932</Y>
									<Z>109.520981</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</token>
								<float name="Friction">0.300000012</float>
								<float name="FrontParamA">0</float>
								<float name="FrontParamB">0</float>
								<token name="FrontSurface">6</token>
								<token name="FrontSurfaceInput">0</token>
								<float name="LeftParamA">-0.5</float>
								<float name="LeftParamB">0.5</float>
								<token name="LeftSurface">2</token>
								<token name="LeftSurfaceInput">0</token>
								<bool name="Locked">false</bool>
								<string name="Name">GunAttachment</string>
								<float name="Reflectance">0</float>
								<float name="RightParamA">-0.5</float>
								<float name="RightParamB">0.5</float>
								<token name="RightSurface">2</token>
								<token name="RightSurfaceInput">0</token>
								<Vector3 name="RotVelocity">
									<X>-0.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</Z>
								</Vector3>
								<float name="TopParamA">-0.5</float>
								<float name="TopParamB">0.5</float>
								<token name="TopSurface">0</token>
								<token name="TopSurfaceInput">0</token>
								<float name="Transparency">0</float>
								<Vector3 name="Velocity">
									<X>-0.124221466</X>
									<Y>-0.268244028</Y>
									<Z>-0.0345693231</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>1.20000005</Y>
									<Z>3</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="Part" referent="RBX6641">
							<Properties>
								<bool name="Anchored">false</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">1</int>
								<CoordinateFrame name="CFrame">
									<X>-23.4903145</X>
									<Y>9.8896904</Y>
									<Z>109.520241</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</token>
								<float name="Friction">0.300000012</float>
								<float name="FrontParamA">0</float>
								<float name="FrontParamB">0</float>
								<token name="FrontSurface">6</token>
								<token name="FrontSurfaceInput">0</token>
								<float name="LeftParamA">-0.5</float>
								<float name="LeftParamB">0.5</float>
								<token name="LeftSurface">2</token>
								<token name="LeftSurfaceInput">0</token>
								<bool name="Locked">false</bool>
								<string name="Name">Gun1</string>
								<float name="Reflectance">0</float>
								<float name="RightParamA">-0.5</float>
								<float name="RightParamB">0.5</float>
								<token name="RightSurface">2</token>
								<token name="RightSurfaceInput">0</token>
								<Vector3 name="RotVelocity">
									<X>-0.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</Z>
								</Vector3>
								<float name="TopParamA">-0.5</float>
								<float name="TopParamB">0.5</float>
								<token name="TopSurface">0</token>
								<token name="TopSurfaceInput">0</token>
								<float name="Transparency">0</float>
								<Vector3 name="Velocity">
									<X>-0.126264915</X>
									<Y>0.943781734</Y>
									<Z>0.130567878</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>1.20000005</Y>
									<Z>3</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="Part" referent="RBX6642">
							<Properties>
								<bool name="Anchored">false</bool>
								<float name="BackParamA">-0.5</float>
								<float name="BackParamB">0.5</float>
								<token name="BackSurface">2</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">194</int>
								<CoordinateFrame name="CFrame">
									<X>-17.9891891</X>
									<Y>9.97127724</Y>
									<Z>92.5207977</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Tip</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</Z>
								</Vector3>
								<float name="TopParamA">-0.5</float>
								<float name="TopParamB">0.5</float>
								<token name="TopSurface">0</token>
								<token name="TopSurfaceInput">0</token>
								<float name="Transparency">0</float>
								<Vector3 name="Velocity">
									<X>-0.396304846</X>
									<Y>-0.197827131</Y>
									<Z>0.0377022587</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>2</X>
									<Y>1.20000005</Y>
									<Z>5</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="Script" referent="RBX6643">
							<Properties>
								<bool name="Disabled">false</bool>
								<Content name="LinkedSource"><null></null></Content>
								<string name="Name">Script</string>
								<string name="Source">position = script.Parent.Engine.Position
local frame = Instance.new(&quot;CFrameValue&quot;)
frame.Name = &quot;OriginCFrame&quot;
frame.Value = script.Parent.Engine.CFrame
frame.Parent = script.Parent

local object = Instance.new(&quot;ObjectValue&quot;)
object.Value = script.Parent.Parent.Parent

seat = script.Parent.Seat

function onChildAdded(part)
	if part.className == &quot;Weld&quot; then
		local torso = part.Part1
		if torso ~= nil then
			local parent = torso.Parent
			if parent ~= nil then
				script.Parent.Parent.Parent = parent
				while true do
					wait(2)
					local pos = script.Parent.Engine.Position
					if (position - pos).magnitude &gt; 30 then
						if object.Value ~= nil then
							object.Value.Regen.Value = 1
							wait(.5)
							object.Value.Regen.Value = 0
							object.Value = nil
						end
					break end
				end
				while true do
					print(&quot;Loop&quot;)
					wait(2)
					if part == nil then
						script.Parent.Parent.Parent = game.Workspace
						script.Parent.Parent:MakeJoints()
					break end
				end
			end
		end
	end
end
seat.ChildAdded:connect(onChildAdded)</string>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
						<Item class="Part" referent="RBX6644">
							<Properties>
								<bool name="Anchored">false</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">1</int>
								<CoordinateFrame name="CFrame">
									<X>-12.4903297</X>
									<Y>9.90812492</Y>
									<Z>109.521057</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</token>
								<float name="Friction">0.300000012</float>
								<float name="FrontParamA">0</float>
								<float name="FrontParamB">0</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">2</token>
								<token name="LeftSurfaceInput">0</token>
								<bool name="Locked">false</bool>
								<string name="Name">Gun2</string>
								<float name="Reflectance">0</float>
								<float name="RightParamA">-0.5</float>
								<float name="RightParamB">0.5</float>
								<token name="RightSurface">2</token>
								<token name="RightSurfaceInput">0</token>
								<Vector3 name="RotVelocity">
									<X>-0.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</Z>
								</Vector3>
								<float name="TopParamA">-0.5</float>
								<float name="TopParamB">0.5</float>
								<token name="TopSurface">0</token>
								<token name="TopSurfaceInput">0</token>
								<float name="Transparency">0</float>
								<Vector3 name="Velocity">
									<X>-0.124017119</X>
									<Y>-0.389446586</Y>
									<Z>-0.0510830432</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>1.20000005</Y>
									<Z>3</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="Part" referent="RBX6645">
							<Properties>
								<bool name="Anchored">false</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">1</int>
								<CoordinateFrame name="CFrame">
									<X>-22.4903164</X>
									<Y>9.891366</Y>
									<Z>109.520317</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</token>
								<float name="Friction">0.300000012</float>
								<float name="FrontParamA">0</float>
								<float name="FrontParamB">0</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">2</token>
								<token name="LeftSurfaceInput">0</token>
								<bool name="Locked">false</bool>
								<string name="Name">GunAttachment</string>
								<float name="Reflectance">0</float>
								<float name="RightParamA">-0.5</float>
								<float name="RightParamB">0.5</float>
								<token name="RightSurface">2</token>
								<token name="RightSurfaceInput">0</token>
								<Vector3 name="RotVelocity">
									<X>-0.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</Z>
								</Vector3>
								<float name="TopParamA">-0.5</float>
								<float name="TopParamB">0.5</float>
								<token name="TopSurface">0</token>
								<token name="TopSurfaceInput">0</token>
								<float name="Transparency">0</float>
								<Vector3 name="Velocity">
									<X>-0.12606056</X>
									<Y>0.822579265</Y>
									<Z>0.114054173</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>1.20000005</Y>
									<Z>3</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="CFrameValue" referent="RBX6646">
							<Properties>
								<string name="Name">OriginCFrame</string>
								<CoordinateFrame name="Value">
									<X>9</X>
									<Y>11.1999998</Y>
									<Z>108</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="archivable">true</bool>
							</Properties>
						</Item>
						<Item class="CFrameValue" referent="RBX6647">
							<Properties>
								<string name="Name">OriginCFrame</string>
								<CoordinateFrame name="Value">
									<X>-172.787521</X>
									<Y>30.950922</Y>
									<Z>-194.998672</Z>
									<R00>3.59113365e-005</R00>
									<R01>-0.0119043384</R01>
									<R02>-0.99992913</R02>
									<R10>0.000662317208</R10>
									<R11>0.999928951</R11>
									<R12>-0.0119043123</R12>
									<R20>0.999999821</R20>
									<R21>-0.000661842525</R21>
									<R22>4.37932285e-005</R22>
								</CoordinateFrame>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
						<Item class="CFrameValue" referent="RBX6648">
							<Properties>
								<string name="Name">OriginCFrame</string>
								<CoordinateFrame name="Value">
									<X>-592.00592</X>
									<Y>10.4740505</Y>
									<Z>125.994194</Z>
									<R00>0.000328170368</R00>
									<R01>0.00107514334</R01>
									<R02>0.999999464</R02>
									<R10>0.00346303848</R10>
									<R11>0.999993443</R11>
									<R12>-0.00107627374</R12>
									<R20>-0.99999404</R20>
									<R21>0.00346338935</R21>
									<R22>0.000324444962</R22>
								</CoordinateFrame>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
						<Item class="CFrameValue" referent="RBX6649">
							<Properties>
								<string name="Name">OriginCFrame</string>
								<CoordinateFrame name="Value">
									<X>110.004341</X>
									<Y>9.92276192</Y>
									<Z>92.5985413</Z>
									<R00>-0.999997616</R00>
									<R01>0.00213071308</R01>
									<R02>0.000253954291</R02>
									<R10>0.00213359296</R10>
									<R11>0.999926448</R11>
									<R12>0.0119374618</R12>
									<R20>-0.000228500328</R20>
									<R21>0.0119379759</R21>
									<R22>-0.999928594</R22>
								</CoordinateFrame>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
						<Item class="CFrameValue" referent="RBX6650">
							<Properties>
								<string name="Name">OriginCFrame</string>
								<CoordinateFrame name="Value">
									<X>-38.0076447</X>
									<Y>9.98755169</Y>
									<Z>-10.8252716</Z>
									<R00>0.99999994</R00>
									<R01>-4.51004453e-005</R01>
									<R02>-8.48906056e-005</R02>
									<R10>4.50902189e-005</R10>
									<R11>0.99999994</R11>
									<R12>-0.000101486163</R12>
									<R20>8.48951822e-005</R20>
									<R21>0.000101481462</R21>
									<R22>0.99999994</R22>
								</CoordinateFrame>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
						<Item class="CFrameValue" referent="RBX6651">
							<Properties>
								<string name="Name">OriginCFrame</string>
								<CoordinateFrame name="Value">
									<X>-22</X>
									<Y>50.7999992</Y>
									<Z>-141</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="archivable">true</bool>
							</Properties>
						</Item>
						<Item class="CFrameValue" referent="RBX6652">
							<Properties>
								<string name="Name">OriginCFrame</string>
								<CoordinateFrame name="Value">
									<X>-21.9999313</X>
									<Y>50.7999649</Y>
									<Z>-140.999893</Z>
									<R00>1</R00>
									<R01>-1.07834103e-006</R01>
									<R02>-1.97617828e-006</R02>
									<R10>1.07833944e-006</R10>
									<R11>1</R11>
									<R12>-8.5963859e-007</R12>
									<R20>1.97617919e-006</R20>
									<R21>8.5963643e-007</R21>
									<R22>1</R22>
								</CoordinateFrame>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
						<Item class="CFrameValue" referent="RBX6653">
							<Properties>
								<string name="Name">OriginCFrame</string>
								<CoordinateFrame name="Value">
									<X>-21.9998817</X>
									<Y>50.7999496</Y>
									<Z>-140.999924</Z>
									<R00>1</R00>
									<R01>-4.70970645e-006</R01>
									<R02>-2.32221623e-006</R02>
									<R10>4.70970281e-006</R10>
									<R11>1</R11>
									<R12>-1.56090573e-006</R12>
									<R20>2.32222351e-006</R20>
									<R21>1.56089482e-006</R21>
									<R22>1</R22>
								</CoordinateFrame>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
						<Item class="CFrameValue" referent="RBX6654">
							<Properties>
								<string name="Name">OriginCFrame</string>
								<CoordinateFrame name="Value">
									<X>-21.9998569</X>
									<Y>50.7999573</Y>
									<Z>-141.000336</Z>
									<R00>1</R00>
									<R01>-2.20421657e-006</R01>
									<R02>-2.50338212e-006</R02>
									<R10>2.20421657e-006</R10>
									<R11>1</R11>
									<R12>2.43204852e-008</R12>
									<R20>2.50338212e-006</R20>
									<R21>-2.43260025e-008</R21>
									<R22>1</R22>
								</CoordinateFrame>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
						<Item class="CFrameValue" referent="RBX6655">
							<Properties>
								<string name="Name">OriginCFrame</string>
								<CoordinateFrame name="Value">
									<X>-17.993145</X>
									<Y>9.92897797</Y>
									<Z>103.049789</Z>
									<R00>0.999999821</R00>
									<R01>0.000621508574</R01>
									<R02>0.000152255074</R02>
									<R10>-0.000620896695</R10>
									<R11>0.999991834</R11>
									<R12>-0.00398637215</R12>
									<R20>-0.000154731402</R20>
									<R21>0.00398627669</R21>
									<R22>0.999992073</R22>
								</CoordinateFrame>
								<bool name="archivable">true</bool>
							</Properties>
						</Item>
					</Item>
					<Item class="Script" referent="RBX6656">
						<Properties>
							<bool name="Disabled">false</bool>
							<Content name="LinkedSource"><null></null></Content>
							<string name="Name">Script</string>
							<string name="Source">local boom = false

function createExplosion(position)

explosion = Instance.new(&quot;Explosion&quot;)
explosion.Position = position
explosion.BlastRadius = 12
explosion.Parent = game.Workspace

end

function onTouch(part)
	if boom == true then return end
	if (part.Name == &quot;Rocket&quot;) or (part.Name == &quot;Safe&quot;) or (part.Parent.Parent.Parent == script.Parent) or (part.Parent:findFirstChild(&quot;Humanoid&quot;)) then return end
	if (script.Parent.Parts.Tip.Velocity.x &gt; 50) or (script.Parent.Parts.Tip.Velocity.x &lt; -50) or (script.Parent.Parts.Tip.Velocity.z &gt; 50) or (script.Parent.Parts.Tip.Velocity.z &lt; -50) then
	boom = true
	createExplosion(script.Parent.Parts.Engine.Position)
	script.Parent:BreakJoints()
	local stuff = script.Parent:children()
	for i=1,#stuff do
		if stuff[i].Name == &quot;BodyKit&quot; or
		stuff[i].Name == &quot;Parts&quot; then
		local parts = stuff[i]:children()
			for p = 1, #parts do
				if parts[p].className == &quot;Part&quot; then
				local velo = Instance.new(&quot;BodyVelocity&quot;)
				velo.maxForce = Vector3.new(9.9e+036, 9.9e+036, 9.9e+036)
				velo.velocity = Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
				velo.Parent = parts[p]
				end
			end
		end
	end
	wait(4)
	script.Parent:remove()
	end
end

script.Parent.Parts.Tip.Touched:connect(onTouch)
</string>
							<bool name="archivable">true</bool>
						</Properties>
					</Item>
					<Item class="IntValue" referent="RBX6657">
						<Properties>
							<string name="Name">PlaneCheck</string>
							<int name="Value">0</int>
							<bool name="archivable">true</bool>
						</Properties>
					</Item>
					<Item class="IntValue" referent="RBX6658">
						<Properties>
							<string name="Name">Stunt</string>
							<int name="Value">0</int>
							<bool name="archivable">true</bool>
						</Properties>
					</Item>
					<Item class="Model" referent="RBX6659">
						<Properties>
							<token name="Controller">0</token>
							<bool name="ControllerFlagShown">true</bool>
							<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">BodyKit</string>
							<Ref name="PrimaryPart">RBX6660</Ref>
							<bool name="archivable">true</bool>
						</Properties>
						<Item class="Part" referent="RBX6661">
							<Properties>
								<bool name="Anchored">false</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">194</int>
								<CoordinateFrame name="CFrame">
									<X>-17.9980659</X>
									<Y>14.7180138</Y>
									<Z>105.041122</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</R22>
								</CoordinateFrame>
								<bool name="CanCollide">false</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</Z>
								</Vector3>
								<float name="TopParamA">-0.5</float>
								<float name="TopParamB">0.5</float>
								<token name="TopSurface">0</token>
								<token name="TopSurfaceInput">0</token>
								<float name="Transparency">0.5</float>
								<Vector3 name="Velocity">
									<X>0.385193795</X>
									<Y>0.152979389</Y>
									<Z>-0.0947423056</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>4</X>
									<Y>3.60000014</Y>
									<Z>8</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6662">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
							<Item class="Script" referent="RBX6663">
								<Properties>
									<bool name="Disabled">false</bool>
									<Content name="LinkedSource"><null></null></Content>
									<string name="Name">Script</string>
									<string name="Source">-- Arwing made by Articerile</string>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6664">
							<Properties>
								<bool name="Anchored">false</bool>
								<float name="BackParamA">-0.5</float>
								<float name="BackParamB">0.5</float>
								<token name="BackSurface">2</token>
								<token name="BackSurfaceInput">0</token>
								<float name="BottomParamA">-0.5</float>
								<float name="BottomParamB">0.5</float>
								<token name="BottomSurface">4</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">194</int>
								<CoordinateFrame name="CFrame">
									<X>-17.9983997</X>
									<Y>14.6967287</Y>
									<Z>110.041077</Z>
									<R00>-0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>6.66333435e-005</R02>
									<R10>-0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>0.00425701961</R12>
									<R20>-7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>-0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</Z>
								</Vector3>
								<float name="TopParamA">-0.5</float>
								<float name="TopParamB">0.5</float>
								<token name="TopSurface">0</token>
								<token name="TopSurfaceInput">0</token>
								<float name="Transparency">0</float>
								<Vector3 name="Velocity">
									<X>0.46494785</X>
									<Y>0.292683721</Y>
									<Z>-0.0941422507</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>4</X>
									<Y>3.60000014</Y>
									<Z>2</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6665">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6666">
							<Properties>
								<bool name="Anchored">false</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">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">194</int>
								<CoordinateFrame name="CFrame">
									<X>-17.9912338</X>
									<Y>11.169136</Y>
									<Z>93.0259018</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.24280107</X>
									<Y>-0.183470219</Y>
									<Z>0.00427610055</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>2</X>
									<Y>1.20000005</Y>
									<Z>4</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6667">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6668">
							<Properties>
								<bool name="Anchored">false</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">4</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">194</int>
								<CoordinateFrame name="CFrame">
									<X>-17.9936123</X>
									<Y>12.3457098</Y>
									<Z>98.5309677</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</Z>
								</Vector3>
								<float name="TopParamA">-0.5</float>
								<float name="TopParamB">0.5</float>
								<token name="TopSurface">0</token>
								<token name="TopSurfaceInput">0</token>
								<float name="Transparency">0</float>
								<Vector3 name="Velocity">
									<X>-0.00954312924</X>
									<Y>-0.0294087604</Y>
									<Z>-0.0285500046</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>4</X>
									<Y>1.20000005</Y>
									<Z>7</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6669">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6670">
							<Properties>
								<bool name="Anchored">false</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">4</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">194</int>
								<CoordinateFrame name="CFrame">
									<X>-17.9916</X>
									<Y>11.1457224</Y>
									<Z>98.525856</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.155071557</X>
									<Y>-0.0297954399</Y>
									<Z>0.00493614608</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>6</X>
									<Y>1.20000005</Y>
									<Z>7</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="Part" referent="RBX6671">
							<Properties>
								<bool name="Anchored">false</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">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">1</int>
								<CoordinateFrame name="CFrame">
									<X>-19.4893875</X>
									<Y>10.0666342</Y>
									<Z>93.0211105</Z>
									<R00>-0.00167618238</R00>
									<R01>-0.999998569</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.99998951</R10>
									<R11>-0.00167588342</R11>
									<R12>-0.00425701961</R12>
									<R20>0.00425690226</R20>
									<R21>-7.37681839e-005</R21>
									<R22>0.99999094</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">0</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.376508504</X>
									<Y>-0.00202061096</Y>
									<Z>0.0597423129</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>1</Y>
									<Z>4</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6672">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6673">
							<Properties>
								<bool name="Anchored">false</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">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">208</int>
								<CoordinateFrame name="CFrame">
									<X>-16.4890575</X>
									<Y>9.87166405</Y>
									<Z>93.0204773</Z>
									<R00>0.00167618238</R00>
									<R01>0.999998569</R01>
									<R02>-6.66333435e-005</R02>
									<R10>-0.99998951</R10>
									<R11>0.00167588342</R11>
									<R12>-0.00425701961</R12>
									<R20>-0.00425690226</R20>
									<R21>7.37681839e-005</R21>
									<R22>0.99999094</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">0</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.400150269</X>
									<Y>-0.365692735</Y>
									<Z>0.0157821942</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>1</Y>
									<Z>4</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6674">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6675">
							<Properties>
								<bool name="Anchored">false</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">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">194</int>
								<CoordinateFrame name="CFrame">
									<X>-17.9872112</X>
									<Y>8.76916122</Y>
									<Z>93.015686</Z>
									<R00>-0.999998569</R00>
									<R01>0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>-0.00167588342</R10>
									<R11>-0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>-7.37681839e-005</R20>
									<R21>-0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.533857822</X>
									<Y>-0.184243128</Y>
									<Z>0.0712484345</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>2</X>
									<Y>1.20000005</Y>
									<Z>4</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6676">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6660">
							<Properties>
								<bool name="Anchored">false</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">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">194</int>
								<CoordinateFrame name="CFrame">
									<X>-17.9885483</X>
									<Y>9.12658691</Y>
									<Z>103.017303</Z>
									<R00>-0.999998569</R00>
									<R01>0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>-0.00167588342</R10>
									<R11>-0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>-7.37681839e-005</R20>
									<R21>-0.00425690226</R21>
									<R22>0.99999094</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</Z>
								</Vector3>
								<float name="TopParamA">-0.5</float>
								<float name="TopParamB">0.5</float>
								<token name="TopSurface">0</token>
								<token name="TopSurfaceInput">0</token>
								<float name="Transparency">0</float>
								<Vector3 name="Velocity">
									<X>-0.325840145</X>
									<Y>0.095294416</Y>
									<Z>0.0612864681</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>6</X>
									<Y>0.400000006</Y>
									<Z>16</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="Part" referent="RBX6677">
							<Properties>
								<bool name="Anchored">false</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">4</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">23</int>
								<CoordinateFrame name="CFrame">
									<X>-21.4939079</X>
									<Y>12.3206882</Y>
									<Z>103.030663</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</Z>
								</Vector3>
								<float name="TopParamA">-0.5</float>
								<float name="TopParamB">0.5</float>
								<token name="TopSurface">0</token>
								<token name="TopSurfaceInput">0</token>
								<float name="Transparency">0</float>
								<Vector3 name="Velocity">
									<X>0.0615203008</X>
									<Y>0.520534039</Y>
									<Z>0.0297880489</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>3.60000014</Y>
									<Z>16</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6678">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6679">
							<Properties>
								<bool name="Anchored">false</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">4</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">23</int>
								<CoordinateFrame name="CFrame">
									<X>-14.4939175</X>
									<Y>12.3324194</Y>
									<Z>103.031181</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</Z>
								</Vector3>
								<float name="TopParamA">-0.5</float>
								<float name="TopParamB">0.5</float>
								<token name="TopSurface">0</token>
								<token name="TopSurfaceInput">0</token>
								<float name="Transparency">0</float>
								<Vector3 name="Velocity">
									<X>0.0629507154</X>
									<Y>-0.327884018</Y>
									<Z>-0.085807994</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>3.60000014</Y>
									<Z>16</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6680">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6681">
							<Properties>
								<bool name="Anchored">false</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">4</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">1</int>
								<CoordinateFrame name="CFrame">
									<X>-15.4931431</X>
									<Y>11.7158499</Y>
									<Z>106.528519</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.0458099321</X>
									<Y>-0.109081827</Y>
									<Z>-0.0521311611</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>2.4000001</Y>
									<Z>9</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="Part" referent="RBX6682">
							<Properties>
								<bool name="Anchored">false</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">4</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">1</int>
								<CoordinateFrame name="CFrame">
									<X>-20.4931355</X>
									<Y>11.7074709</Y>
									<Z>106.528152</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.0447883271</X>
									<Y>0.496931106</Y>
									<Z>0.0304374173</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>2.4000001</Y>
									<Z>9</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="Part" referent="RBX6683">
							<Properties>
								<bool name="Anchored">false</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">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">23</int>
								<CoordinateFrame name="CFrame">
									<X>-24.993866</X>
									<Y>12.0956678</Y>
									<Z>107.52951</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.108328961</X>
									<Y>1.07041228</Y>
									<Z>0.0937071219</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>3.60000014</Y>
									<Z>7</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6684">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6685">
							<Properties>
								<bool name="Anchored">false</bool>
								<float name="BackParamA">-0.5</float>
								<float name="BackParamB">0.5</float>
								<token name="BackSurface">2</token>
								<token name="BackSurfaceInput">0</token>
								<float name="BottomParamA">-0.5</float>
								<float name="BottomParamB">0.5</float>
								<token name="BottomSurface">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">23</int>
								<CoordinateFrame name="CFrame">
									<X>-24.9874649</X>
									<Y>8.29783535</Y>
									<Z>107.013336</Z>
									<R00>-0.999998569</R00>
									<R01>0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>-0.00167588342</R10>
									<R11>-0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>-7.37681839e-005</R20>
									<R21>-0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.360486448</X>
									<Y>1.0552181</Y>
									<Z>0.199686691</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>2.4000001</Y>
									<Z>6</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6686">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6687">
							<Properties>
								<bool name="Anchored">false</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">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">1</int>
								<CoordinateFrame name="CFrame">
									<X>-24.9903126</X>
									<Y>9.88717651</Y>
									<Z>109.520126</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">false</bool>
								<string name="Name">Smooth Block Model</string>
								<float name="Reflectance">0</float>
								<float name="RightParamA">-0.5</float>
								<float name="RightParamB">0.5</float>
								<token name="RightSurface">2</token>
								<token name="RightSurfaceInput">0</token>
								<Vector3 name="RotVelocity">
									<X>-0.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</Z>
								</Vector3>
								<float name="TopParamA">-0.5</float>
								<float name="TopParamB">0.5</float>
								<token name="TopSurface">2</token>
								<token name="TopSurfaceInput">0</token>
								<float name="Transparency">0</float>
								<Vector3 name="Velocity">
									<X>-0.126571491</X>
									<Y>1.12558556</Y>
									<Z>0.155338466</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>2</X>
									<Y>0.800000012</Y>
									<Z>3</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="Part" referent="RBX6688">
							<Properties>
								<bool name="Anchored">false</bool>
								<float name="BackParamA">-0.5</float>
								<float name="BackParamB">0.5</float>
								<token name="BackSurface">2</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">23</int>
								<CoordinateFrame name="CFrame">
									<X>-24.9877987</X>
									<Y>8.27655029</Y>
									<Z>112.01329</Z>
									<R00>0.999998569</R00>
									<R01>0.00167618238</R01>
									<R02>6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>-0.99998951</R11>
									<R12>0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>-0.00425690226</R21>
									<R22>-0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.280732393</X>
									<Y>1.19492245</Y>
									<Z>0.200286746</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>2.4000001</Y>
									<Z>4</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6689">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6690">
							<Properties>
								<bool name="Anchored">false</bool>
								<float name="BackParamA">-0.5</float>
								<float name="BackParamB">0.5</float>
								<token name="BackSurface">2</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">23</int>
								<CoordinateFrame name="CFrame">
									<X>-10.9878159</X>
									<Y>8.30001259</Y>
									<Z>112.014336</Z>
									<R00>0.999998569</R00>
									<R01>0.00167618238</R01>
									<R02>6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>-0.99998951</R11>
									<R12>0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>-0.00425690226</R21>
									<R22>-0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.27787143</X>
									<Y>-0.501913667</Y>
									<Z>-0.0309053846</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>2.4000001</Y>
									<Z>4</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6691">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6692">
							<Properties>
								<bool name="Anchored">false</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">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">23</int>
								<CoordinateFrame name="CFrame">
									<X>-10.993886</X>
									<Y>12.1191301</Y>
									<Z>107.530556</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.111189909</X>
									<Y>-0.626423538</Y>
									<Z>-0.137484953</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>3.60000014</Y>
									<Z>7</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6693">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6694">
							<Properties>
								<bool name="Anchored">false</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">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">1</int>
								<CoordinateFrame name="CFrame">
									<X>-10.9903316</X>
									<Y>9.91063881</Y>
									<Z>109.521172</Z>
									<R00>-0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>6.66333435e-005</R02>
									<R10>-0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>0.00425701961</R12>
									<R20>-7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>-0.99999094</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">false</bool>
								<string name="Name">Smooth Block Model</string>
								<float name="Reflectance">0</float>
								<float name="RightParamA">-0.5</float>
								<float name="RightParamB">0.5</float>
								<token name="RightSurface">2</token>
								<token name="RightSurfaceInput">0</token>
								<Vector3 name="RotVelocity">
									<X>-0.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</Z>
								</Vector3>
								<float name="TopParamA">-0.5</float>
								<float name="TopParamB">0.5</float>
								<token name="TopSurface">2</token>
								<token name="TopSurfaceInput">0</token>
								<float name="Transparency">0</float>
								<Vector3 name="Velocity">
									<X>-0.123710543</X>
									<Y>-0.571250379</Y>
									<Z>-0.0758536309</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>2</X>
									<Y>0.800000012</Y>
									<Z>3</Z>
								</Vector3>
							</Properties>
						</Item>
						<Item class="Part" referent="RBX6695">
							<Properties>
								<bool name="Anchored">false</bool>
								<float name="BackParamA">-0.5</float>
								<float name="BackParamB">0.5</float>
								<token name="BackSurface">2</token>
								<token name="BackSurfaceInput">0</token>
								<float name="BottomParamA">-0.5</float>
								<float name="BottomParamB">0.5</float>
								<token name="BottomSurface">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">23</int>
								<CoordinateFrame name="CFrame">
									<X>-10.987483</X>
									<Y>8.32129765</Y>
									<Z>107.014381</Z>
									<R00>-0.999998569</R00>
									<R01>0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>-0.00167588342</R10>
									<R11>-0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>-7.37681839e-005</R20>
									<R21>-0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.357625484</X>
									<Y>-0.641617894</Y>
									<Z>-0.0315054208</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>2.4000001</Y>
									<Z>6</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6696">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6697">
							<Properties>
								<bool name="Anchored">false</bool>
								<float name="BackParamA">-0.5</float>
								<float name="BackParamB">0.5</float>
								<token name="BackSurface">2</token>
								<token name="BackSurfaceInput">0</token>
								<float name="BottomParamA">-0.5</float>
								<float name="BottomParamB">0.5</float>
								<token name="BottomSurface">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">23</int>
								<CoordinateFrame name="CFrame">
									<X>-8.19046974</X>
									<Y>10.0174589</Y>
									<Z>109.021805</Z>
									<R00>0.00167618238</R00>
									<R01>0.999998569</R01>
									<R02>-6.66333435e-005</R02>
									<R10>-0.99998951</R10>
									<R11>0.00167588342</R11>
									<R12>-0.00425701961</R12>
									<R20>-0.00425690226</R20>
									<R21>7.37681839e-005</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.118986472</X>
									<Y>-0.924555957</Y>
									<Z>-0.124942571</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>3.60000014</Y>
									<Z>4</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6698">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6699">
							<Properties>
								<bool name="Anchored">false</bool>
								<float name="BackParamA">-0.5</float>
								<float name="BackParamB">0.5</float>
								<token name="BackSurface">2</token>
								<token name="BackSurfaceInput">0</token>
								<float name="BottomParamA">-0.5</float>
								<float name="BottomParamB">0.5</float>
								<token name="BottomSurface">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">23</int>
								<CoordinateFrame name="CFrame">
									<X>-8.19073582</X>
									<Y>10.0004311</Y>
									<Z>113.021767</Z>
									<R00>0.00167618238</R00>
									<R01>-0.999998569</R01>
									<R02>6.66333435e-005</R02>
									<R10>-0.99998951</R10>
									<R11>-0.00167588342</R11>
									<R12>0.00425701961</R12>
									<R20>-0.00425690226</R20>
									<R21>-7.37681839e-005</R21>
									<R22>-0.99999094</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.0551832356</X>
									<Y>-0.812792659</Y>
									<Z>-0.124462552</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>3.60000014</Y>
									<Z>4</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6700">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6701">
							<Properties>
								<bool name="Anchored">false</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">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">23</int>
								<CoordinateFrame name="CFrame">
									<X>-4.59074068</X>
									<Y>10.006464</Y>
									<Z>113.022034</Z>
									<R00>0.00167618238</R00>
									<R01>0.999998569</R01>
									<R02>-6.66333435e-005</R02>
									<R10>-0.99998951</R10>
									<R11>0.00167588342</R11>
									<R12>-0.00425701961</R12>
									<R20>-0.00425690226</R20>
									<R21>7.37681839e-005</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.0544476174</X>
									<Y>-1.2491219</Y>
									<Z>-0.183911934</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>3.60000014</Y>
									<Z>4</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6702">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6703">
							<Properties>
								<bool name="Anchored">false</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">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">23</int>
								<CoordinateFrame name="CFrame">
									<X>-31.3903694</X>
									<Y>9.76155281</Y>
									<Z>113.019196</Z>
									<R00>-0.00167618238</R00>
									<R01>-0.999998569</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.99998951</R10>
									<R11>-0.00167588342</R11>
									<R12>-0.00425701961</R12>
									<R20>0.00425690226</R20>
									<R21>-7.37681839e-005</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.0841787606</X>
									<Y>1.99904299</Y>
									<Z>0.264236808</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>3.60000014</Y>
									<Z>4</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6704">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6705">
							<Properties>
								<bool name="Anchored">false</bool>
								<float name="BackParamA">-0.5</float>
								<float name="BackParamB">0.5</float>
								<token name="BackSurface">2</token>
								<token name="BackSurfaceInput">0</token>
								<float name="BottomParamA">-0.5</float>
								<float name="BottomParamB">0.5</float>
								<token name="BottomSurface">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">23</int>
								<CoordinateFrame name="CFrame">
									<X>-27.7901077</X>
									<Y>9.78461361</Y>
									<Z>109.019501</Z>
									<R00>-0.00167618238</R00>
									<R01>-0.999998569</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.99998951</R10>
									<R11>-0.00167588342</R11>
									<R12>-0.00425701961</R12>
									<R20>0.00425690226</R20>
									<R21>-7.37681839e-005</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.147246376</X>
									<Y>1.45095026</Y>
									<Z>0.204307392</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>3.60000014</Y>
									<Z>4</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6706">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6707">
							<Properties>
								<bool name="Anchored">false</bool>
								<float name="BackParamA">-0.5</float>
								<float name="BackParamB">0.5</float>
								<token name="BackSurface">2</token>
								<token name="BackSurfaceInput">0</token>
								<float name="BottomParamA">-0.5</float>
								<float name="BottomParamB">0.5</float>
								<token name="BottomSurface">2</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">23</int>
								<CoordinateFrame name="CFrame">
									<X>-27.7903748</X>
									<Y>9.76758575</Y>
									<Z>113.019463</Z>
									<R00>-0.00167618238</R00>
									<R01>0.999998569</R01>
									<R02>6.66333435e-005</R02>
									<R10>0.99998951</R10>
									<R11>0.00167588342</R11>
									<R12>0.00425701961</R12>
									<R20>0.00425690226</R20>
									<R21>7.37681839e-005</R21>
									<R22>-0.99999094</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.0834431425</X>
									<Y>1.56271374</Y>
									<Z>0.204787433</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>1</X>
									<Y>3.60000014</Y>
									<Z>4</Z>
								</Vector3>
							</Properties>
							<Item class="SpecialMesh" referent="RBX6708">
								<Properties>
									<Content name="MeshId"><null></null></Content>
									<token name="MeshType">2</token>
									<string name="Name">Mesh</string>
									<Vector3 name="Scale">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<Content name="TextureId"><null></null></Content>
									<Vector3 name="VertexColor">
										<X>1</X>
										<Y>1</Y>
										<Z>1</Z>
									</Vector3>
									<bool name="archivable">true</bool>
								</Properties>
							</Item>
						</Item>
						<Item class="Part" referent="RBX6709">
							<Properties>
								<bool name="Anchored">false</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">4</token>
								<token name="BottomSurfaceInput">0</token>
								<int name="BrickColor">194</int>
								<CoordinateFrame name="CFrame">
									<X>-17.993372</X>
									<Y>11.6967602</Y>
									<Z>110.028305</Z>
									<R00>0.999998569</R00>
									<R01>-0.00167618238</R01>
									<R02>-6.66333435e-005</R02>
									<R10>0.00167588342</R10>
									<R11>0.99998951</R11>
									<R12>-0.00425701961</R12>
									<R20>7.37681839e-005</R20>
									<R21>0.00425690226</R21>
									<R22>0.99999094</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">1</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">false</bool>
								<string name="Name">Smooth Block Model</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.0279330313</X>
									<Y>0.0164669305</Y>
									<Z>-0.121204816</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.101126909</X>
									<Y>0.291717589</Y>
									<Z>-0.0104268314</Z>
								</Vector3>
								<bool name="archivable">true</bool>
								<token name="shape">1</token>
								<Vector3 name="size">
									<X>4</X>
									<Y>2.4000001</Y>
									<Z>2</Z>
								</Vector3>
							</Properties>
						</Item>
					</Item>
				</Item>
				<Item class="IntValue" referent="RBX6710">
					<Properties>
						<string name="Name">Regen</string>
						<int name="Value">0</int>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
				<Item class="Script" referent="RBX6711">
					<Properties>
						<bool name="Disabled">false</bool>
						<Content name="LinkedSource"><null></null></Content>
						<string name="Name">Script</string>
						<string name="Source">system = script.Parent
model = system.Plane
backup = model:Clone()
regen = system.Regen

function checkRegen()
	if regen.Value == 1 then
		model = backup:Clone()
		model.Parent = system
		model:MakeJoints()
	end
end
regen.Changed:connect(checkRegen)</string>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX6712">
				<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">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">104</int>
					<CoordinateFrame name="CFrame">
						<X>-25.9915733</X>
						<Y>1.01430202</Y>
						<Z>117.82692</Z>
						<R00>1</R00>
						<R01>4.16542644e-005</R01>
						<R02>8.55757753e-005</R02>
						<R10>-4.16629009e-005</R10>
						<R11>1</R11>
						<R12>0.000100893842</R12>
						<R20>-8.55715698e-005</R20>
						<R21>-0.000100897407</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">1</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">false</bool>
					<string name="Name">Button1</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">0</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>4</X>
						<Y>1.20000005</Y>
						<Z>4</Z>
					</Vector3>
				</Properties>
				<Item class="Script" referent="RBX6713">
					<Properties>
						<bool name="Disabled">false</bool>
						<Content name="LinkedSource"><null></null></Content>
						<string name="Name">Activate</string>
						<string name="Source">button = script.Parent
regen = button.Parent.Regen

local debounce = false

function onTouch(hit)
	local h = hit.Parent:FindFirstChild(&quot;Humanoid&quot;)
	if h ~= nil and debounce == false then
		debounce = true
		button.BrickColor = BrickColor.Black()
		regen.Value = 1
		wait()
		regen.Value = 0
		wait(20)
		button.BrickColor = BrickColor.new(104)
		debounce = false
	end
end
button.Touched:connect(onTouch)</string>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
		</Item>
		<Item class="Model" referent="RBX6714">
			<Properties>
				<token name="Controller">0</token>
				<bool name="ControllerFlagShown">true</bool>
				<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">R.O.B</string>
				<Ref name="PrimaryPart">null</Ref>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Model" referent="RBX6715">
				<Properties>
					<token name="Controller">0</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">R.O.B right leg</string>
					<Ref name="PrimaryPart">null</Ref>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Model" referent="RBX6716">
				<Properties>
					<token name="Controller">0</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Right Arm Piece</string>
					<Ref name="PrimaryPart">null</Ref>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Model" referent="RBX6717">
				<Properties>
					<token name="Controller">0</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">R.O.B left leg</string>
					<Ref name="PrimaryPart">null</Ref>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Model" referent="RBX6718">
				<Properties>
					<token name="Controller">0</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Left Arm Piece</string>
					<Ref name="PrimaryPart">null</Ref>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
		</Item>
		<Item class="Model" referent="RBX6719">
			<Properties>
				<token name="Controller">0</token>
				<bool name="ControllerFlagShown">true</bool>
				<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">Model</string>
				<Ref name="PrimaryPart">null</Ref>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Model" referent="RBX6720">
				<Properties>
					<token name="Controller">7</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Fox</string>
					<Ref name="PrimaryPart">null</Ref>
					<bool name="archivable">true</bool>
				</Properties>
				<Item class="Humanoid" referent="RBX6721">
					<Properties>
						<float name="Health">0</float>
						<bool name="Jump">false</bool>
						<float name="MaxHealth">100</float>
						<string name="Name">Humanoid</string>
						<bool name="Sit">false</bool>
						<bool name="Strafe">false</bool>
						<Vector3 name="TargetPoint">
							<X>0</X>
							<Y>0</Y>
							<Z>0</Z>
						</Vector3>
						<Vector3 name="WalkDirection">
							<X>0</X>
							<Y>0</Y>
							<Z>0</Z>
						</Vector3>
						<float name="WalkRotationalVelocity">0</float>
						<Ref name="WalkToPart">null</Ref>
						<Vector3 name="WalkToPoint">
							<X>0</X>
							<Y>0</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Model" referent="RBX6722">
				<Properties>
					<token name="Controller">0</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Model</string>
					<Ref name="PrimaryPart">null</Ref>
					<bool name="archivable">true</bool>
				</Properties>
				<Item class="Model" referent="RBX6723">
					<Properties>
						<token name="Controller">7</token>
						<bool name="ControllerFlagShown">true</bool>
						<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">Falco</string>
						<Ref name="PrimaryPart">null</Ref>
						<bool name="archivable">true</bool>
					</Properties>
					<Item class="Humanoid" referent="RBX6724">
						<Properties>
							<float name="Health">0</float>
							<bool name="Jump">false</bool>
							<float name="MaxHealth">100</float>
							<string name="Name">Humanoid</string>
							<bool name="Sit">false</bool>
							<bool name="Strafe">false</bool>
							<Vector3 name="TargetPoint">
								<X>0</X>
								<Y>0</Y>
								<Z>0</Z>
							</Vector3>
							<Vector3 name="WalkDirection">
								<X>0</X>
								<Y>0</Y>
								<Z>0</Z>
							</Vector3>
							<float name="WalkRotationalVelocity">0</float>
							<Ref name="WalkToPart">null</Ref>
							<Vector3 name="WalkToPoint">
								<X>0</X>
								<Y>0</Y>
								<Z>0</Z>
							</Vector3>
							<bool name="archivable">true</bool>
						</Properties>
					</Item>
				</Item>
			</Item>
			<Item class="Model" referent="RBX6725">
				<Properties>
					<token name="Controller">7</token>
					<bool name="ControllerFlagShown">true</bool>
					<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">Wolf</string>
					<Ref name="PrimaryPart">null</Ref>
					<bool name="archivable">true</bool>
				</Properties>
				<Item class="Humanoid" referent="RBX6726">
					<Properties>
						<float name="Health">0</float>
						<bool name="Jump">false</bool>
						<float name="MaxHealth">100</float>
						<string name="Name">Humanoid</string>
						<bool name="Sit">false</bool>
						<bool name="Strafe">false</bool>
						<Vector3 name="TargetPoint">
							<X>0</X>
							<Y>0</Y>
							<Z>0</Z>
						</Vector3>
						<Vector3 name="WalkDirection">
							<X>0</X>
							<Y>0</Y>
							<Z>0</Z>
						</Vector3>
						<float name="WalkRotationalVelocity">0</float>
						<Ref name="WalkToPart">null</Ref>
						<Vector3 name="WalkToPoint">
							<X>0</X>
							<Y>0</Y>
							<Z>0</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
		</Item>
		<External>RBX6727</External>
		<Item class="Tool" referent="RBX6728">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">2</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<X>0</X>
					<Y>0</Y>
					<Z>0.5</Z>
					<R00>1</R00>
					<R01>0</R01>
					<R02>-0</R02>
					<R10>0</R10>
					<R11>0</R11>
					<R12>1</R12>
					<R20>0</R20>
					<R21>-1</R21>
					<R22>0</R22>
				</CoordinateFrame>
				<string name="Name">Sniper</string>
				<Content name="TextureId"><null></null></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Script" referent="RBX6729">
				<Properties>
					<bool name="Disabled">true</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Paintball</string>
					<string name="Source">ball = script.Parent
damage = 100



function onTouched(hit)
	local humanoid = hit.Parent:findFirstChild(&quot;Humanoid&quot;)
			-- make a splat
	for i=1,3 do
		local s = Instance.new(&quot;Part&quot;)
		s.Shape = 1 -- block
		s.formFactor = 2 -- plate
		s.Size = Vector3.new(1,.4,1)
		s.BrickColor = ball.BrickColor
		local v = Vector3.new(math.random(-1,1), math.random(0,1), math.random(-1,1))
		s.Velocity = 25 * v
		s.CFrame = CFrame.new(ball.Position + v, v)
		ball.BrickCleanup:clone().Parent = s
		s.BrickCleanup.Disabled = false
		s.Parent = game.Workspace
		
	end
	

	if humanoid ~= nil then
		tagHumanoid(humanoid)
		humanoid.Health = humanoid.Health - damage
		wait(2)
		untagHumanoid(humanoid)
	end

	connection:disconnect()
	ball.Parent = nil
end

function tagHumanoid(humanoid)
	-- todo: make tag expire
	local tag = ball:findFirstChild(&quot;creator&quot;)
	if tag ~= nil then
		local new_tag = tag:clone()
		new_tag.Parent = humanoid
	end
end


function untagHumanoid(humanoid)
	if humanoid ~= nil then
		local tag = humanoid:findFirstChild(&quot;creator&quot;)
		if tag ~= nil then
			tag.Parent = nil
		end
	end
end

connection = ball.Touched:connect(onTouched)

wait(2)
ball.Parent = nil</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="LocalScript" referent="RBX6730">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Local Gui</string>
					<string name="Source">local Tool = script.Parent;

enabled = true
function onButton1Down(mouse)
	if not enabled then
		return
	end

	enabled = false
	mouse.Icon = &quot;rbxasset://textures\\GunWaitCursor.png&quot;

	wait(1.3)
	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	enabled = true

end

function onEquippedLocal(mouse)

	if mouse == nil then
		print(&quot;Mouse not found&quot;)
		return 
	end

	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end


Tool.Equipped:connect(onEquippedLocal)
</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX6731">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">PaintballShooter</string>
					<string name="Source">Tool = script.Parent

function fire(v)

	Tool.Handle.Fire:play()
	

	local vCharacter = Tool.Parent
	local vPlayer = game.Players:playerFromCharacter(vCharacter)

	local missile = Instance.new(&quot;Part&quot;)

        

	local spawnPos = vCharacter.PrimaryPart.Position
	


	spawnPos  = spawnPos + (v * 8)

	missile.Position = spawnPos
	missile.Size = Vector3.new(1,1,1)
	missile.Velocity = v * 500
	missile.BrickColor = vPlayer.TeamColor
	missile.Shape = 1
	missile.BottomSurface = 0
	missile.TopSurface = 0
	missile.Name = &quot;Paintball&quot;
	missile.Elasticity = 0
	missile.Reflectance = .1
	missile.Friction = .3

	local force = Instance.new(&quot;BodyForce&quot;)
	force.force = Vector3.new(0,200,0)
	force.Parent = missile
	
	Tool.BrickCleanup:clone().Parent = missile

	local new_script = script.Parent.Paintball:clone()
	new_script.Disabled = false
	new_script.Parent = missile

	local creator_tag = Instance.new(&quot;ObjectValue&quot;)
	creator_tag.Value = vPlayer
	creator_tag.Name = &quot;creator&quot;
	creator_tag.Parent = missile
	


	missile.Parent = game.Workspace

end



Tool.Enabled = true
function onActivated()

	if not Tool.Enabled then
		return
	end

	Tool.Enabled = false
	local character = Tool.Parent;
	local humanoid = character.Humanoid
	if humanoid == nil then
		print(&quot;Humanoid not found&quot;)
		return 
	end

	local targetPos = humanoid.TargetPoint
	local lookAt = (targetPos - character.Head.Position).unit

	fire(lookAt)

	wait(1.3)

	Tool.Enabled = true
end


script.Parent.Activated:connect(onActivated)

</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX6732">
				<Properties>
					<bool name="Disabled">true</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">BrickCleanup</string>
					<string name="Source">-- this script removes its parent from the workspace after 24 seconds

wait(1)
script.Parent.Parent = nil</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
		</Item>
		<Item class="Tool" referent="RBX6733">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">2</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<X>0</X>
					<Y>-1.25</Y>
					<Z>-0.5</Z>
					<R00>1</R00>
					<R01>1.54230049e-013</R01>
					<R02>-0</R02>
					<R10>1.54229969e-016</R10>
					<R11>-0.000999999465</R11>
					<R12>-0.999999523</R12>
					<R20>-1.54229968e-013</R20>
					<R21>0.999999523</R21>
					<R22>-0.000999999465</R22>
				</CoordinateFrame>
				<string name="Name">Shotgun</string>
				<Content name="TextureId"><null></null></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Script" referent="RBX6734">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">WeldScript</string>
					<string name="Source">local w1 = Instance.new(&quot;Weld&quot;)

w1.Parent = script.Parent.Handle
w1.Part0 = w1.Parent
w1.Part1 = script.Parent.Handle2
w1.C1 = CFrame.new(0, 0.75, -0.25)

local w2 = Instance.new(&quot;Weld&quot;)
w2.Parent = script.Parent.Handle
w2.Part0 = w2.Parent
w2.Part1 = script.Parent.Handle3
w2.C1 = CFrame.new(0, 1.25, 0.25)

local w3 = Instance.new(&quot;Weld&quot;)
w3.Parent = script.Parent.Handle
w3.Part0 = w3.Parent
w3.Part1 = script.Parent.Handle4
w3.C1 = CFrame.fromEulerAnglesXYZ(-0.75, 0, 0) * CFrame.new(0, 1.25, 0.75)

local w4 = Instance.new(&quot;Weld&quot;)
w4.Parent = script.Parent.Handle
w4.Part0 = w4.Parent
w4.Part1 = script.Parent.Handle5
w4.C1 = CFrame.new(0, 0, -0.25)

local w5 = Instance.new(&quot;Weld&quot;)
w5.Parent = script.Parent.Handle
w5.Part0 = w5.Parent
w5.Part1 = script.Parent.Handle6
w5.C1 = CFrame.new(0, -2, 0)

</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Part" referent="RBX6735">
				<Properties>
					<bool name="Anchored">false</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">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">106</int>
					<CoordinateFrame name="CFrame">
						<X>0.609771013</X>
						<Y>-37.4406509</Y>
						<Z>37.5925751</Z>
						<R00>-0.00393876806</R00>
						<R01>0.0575108416</R01>
						<R02>-0.99833709</R02>
						<R10>0.999990523</R10>
						<R11>-0.00163251546</R11>
						<R12>-0.00403932855</R12>
						<R20>-0.00186209322</R20>
						<R21>-0.998343527</R21>
						<R22>-0.0575038679</R22>
					</CoordinateFrame>
					<bool name="CanCollide">false</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">0</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">false</bool>
					<string name="Name">Handle3</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>7.81899489e-017</X>
						<Y>7.81899555e-017</Y>
						<Z>7.81899489e-017</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>2.85006933e-017</X>
						<Y>-122.629288</Y>
						<Z>2.85006933e-017</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>1</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX6736">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>1.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX6737">
				<Properties>
					<bool name="Anchored">false</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">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">192</int>
					<CoordinateFrame name="CFrame">
						<X>1.10893953</X>
						<Y>-37.4386292</Y>
						<Z>37.6213264</Z>
						<R00>-0.00393881882</R00>
						<R01>-0.638425291</R01>
						<R02>-0.769673765</R02>
						<R10>0.999990523</R10>
						<R11>-0.00394789735</R11>
						<R12>-0.0018427684</R12>
						<R20>-0.00186213898</R20>
						<R21>-0.769673705</R21>
						<R22>0.638434708</R22>
					</CoordinateFrame>
					<bool name="CanCollide">false</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">0</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">false</bool>
					<string name="Name">Handle4</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>7.81899621e-017</X>
						<Y>7.81899555e-017</Y>
						<Z>7.81899489e-017</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>2.85006933e-017</X>
						<Y>-122.629288</Y>
						<Z>2.85006933e-017</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>1</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX6738">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>1.75</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX6739">
				<Properties>
					<bool name="Anchored">false</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">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">26</int>
					<CoordinateFrame name="CFrame">
						<X>0.139357924</X>
						<Y>-37.4434891</Y>
						<Z>37.0646515</Z>
						<R00>-0.00393876806</R00>
						<R01>0.0575108416</R01>
						<R02>-0.99833709</R02>
						<R10>0.999990523</R10>
						<R11>-0.00163251546</R11>
						<R12>-0.00403932855</R12>
						<R20>-0.00186209322</R20>
						<R21>-0.998343527</R21>
						<R22>-0.0575038679</R22>
					</CoordinateFrame>
					<bool name="CanCollide">false</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">0</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">false</bool>
					<string name="Name">Handle2</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>1.66106817e-017</X>
						<Y>1.76466956e-017</Y>
						<Z>3.51060448e-017</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>2.85006933e-017</X>
						<Y>-122.629288</Y>
						<Z>2.85006933e-017</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>2</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX6740">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.75</X>
							<Y>1</Y>
							<Z>0.75</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="IntValue" referent="RBX6741">
				<Properties>
					<string name="Name">Ammo</string>
					<int name="Value">36</int>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX6742">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">GunScript</string>
					<string name="Source">originalAmmo = script.Parent.Ammo.Value

m = Instance.new(&quot;Hint&quot;)

function computeDirection(vec)
	local lenSquared = vec.magnitude^2
	local invSqrt = 1 / math.sqrt(lenSquared)
	return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
end

function updateAmmo()
	m.Text = &quot;[&quot;
	for i = 1,script.Parent.Ammo.Value do
		m.Text = m.Text .. &quot;|&quot;
	end
	for i = 1, (originalAmmo - script.Parent.Ammo.Value) do
		m.Text = m.Text .. &quot; &quot;
	end
	m.Text = m.Text .. &quot;] Ammo: &quot; .. script.Parent.Ammo.Value .. &quot; | Clips: &quot; .. script.Parent.Clips.Value
end

function fire(v)
	for i = 1,3 do
		script.Parent.Ammo.Value = script.Parent.Ammo.Value - 1
		updateAmmo()
		local dir = v - script.Parent[&quot;Handle&quot;].Position
		dir = computeDirection(dir)
		local pos = script.Parent[&quot;Handle&quot;].Position + (dir * 8)
		local p = Instance.new(&quot;Part&quot;)
		p.Name = &quot;Projectile&quot;
		p.CFrame = CFrame.new(pos, pos + dir)
		p.BrickColor = BrickColor.new(24)
		p.Reflectance = 0.1
		p.Velocity = (script.Parent.Parent[&quot;Head&quot;].Position - v).unit * -150
		p.Size = Vector3.new(1, 0.4, 1)
		p.formFactor = 2
		local mesh = Instance.new(&quot;SpecialMesh&quot;)
		mesh.MeshType = &quot;Sphere&quot;
		mesh.Scale = Vector3.new(.25, 0.25, 1.5)
		mesh.Parent = p
		local upforce = Instance.new(&quot;BodyForce&quot;)
		upforce.force = Vector3.new(0, p:GetMass() * 196, 0)
		upforce.Parent = p
		local s = script.Parent[&quot;ProjectileScript&quot;]:Clone()
		s.Disabled = false
		s.Parent = p
		p.Parent = game.Workspace
		wait(0.1)
	end
end

function onActivated()
	if script.Parent.Enabled == true then
		script.Parent.Enabled = false
		if script.Parent.Ammo.Value &gt; 0 then
			fire(script.Parent.Parent[&quot;Humanoid&quot;].TargetPoint)
		else
			if script.Parent.Clips.Value &gt;= 3 then
				m.Text = &quot;Reloading.&quot;
				for i =1,5 do
					wait(0.5)
					m.Text = m.Text .. &quot;.&quot;
				end
				script.Parent.Clips.Value = script.Parent.Clips.Value - 1
				script.Parent.Ammo.Value = originalAmmo
				updateAmmo()
			else
				m.Text = &quot;No more clips!&quot;
			end
		end
		wait(0.1)
		script.Parent.Enabled = true
	end
end

function onEquipped()
	local p = game.Players:GetChildren()
	for i = 1,#p do
		if p[i].Character == script.Parent.Parent then
			m.Parent = p[i]
		end
	end
	updateAmmo()
end

function onUnequipped()
	m.Parent = nil
end

script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)
script.Parent.Unequipped:connect(onUnequipped)</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX6743">
				<Properties>
					<bool name="Disabled">true</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">ProjectileScript</string>
					<string name="Source">damage = 8
game:GetService(&quot;Debris&quot;):AddItem(script.Parent, 8)

function onTouched(hit)
	if hit.Parent:findFirstChild(&quot;Humanoid&quot;)~=nil then
		hit.Parent[&quot;Humanoid&quot;]:TakeDamage(damage)
	end
	wait()
	script.Parent:Remove()
end

script.Parent.Touched:connect(onTouched)</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="LocalScript" referent="RBX6744">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Local Gui</string>
					<string name="Source">local Tool = script.Parent;

enabled = true
function onButton1Down(mouse)
	if not enabled then
		return
	end

	enabled = false
	mouse.Icon = &quot;rbxasset://textures\\GunWaitCursor.png&quot;

	wait(0.4)
	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	enabled = true

end

function onEquippedLocal(mouse)

	if mouse == nil then
		print(&quot;Mouse not found&quot;)
		return 
	end

	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end


Tool.Equipped:connect(onEquippedLocal)</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Part" referent="RBX6745">
				<Properties>
					<bool name="Anchored">false</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">4</token>
					<token name="BottomSurfaceInput">0</token>
					<int name="BrickColor">26</int>
					<CoordinateFrame name="CFrame">
						<X>0.182491049</X>
						<Y>-37.4447136</Y>
						<Z>36.3158913</Z>
						<R00>-0.00393876806</R00>
						<R01>0.0575108416</R01>
						<R02>-0.99833709</R02>
						<R10>0.999990523</R10>
						<R11>-0.00163251546</R11>
						<R12>-0.00403932855</R12>
						<R20>-0.00186209322</R20>
						<R21>-0.998343527</R21>
						<R22>-0.0575038679</R22>
					</CoordinateFrame>
					<bool name="CanCollide">false</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">0</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">false</bool>
					<string name="Name">Handle5</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>7.81899489e-017</X>
						<Y>7.81899555e-017</Y>
						<Z>7.81899489e-017</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>2.85006933e-017</X>
						<Y>-122.629288</Y>
						<Z>2.85006933e-017</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>1</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX6746">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>1.75</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="IntValue" referent="RBX6747">
				<Properties>
					<string name="Name">Clips</string>
					<int name="Value">5</int>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
		</Item>
		<Item class="Tool" referent="RBX6748">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">2</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<X>0</X>
					<Y>0</Y>
					<Z>-1.5</Z>
					<R00>0</R00>
					<R01>0</R01>
					<R02>1</R02>
					<R10>1</R10>
					<R11>0</R11>
					<R12>0</R12>
					<R20>0</R20>
					<R21>1</R21>
					<R22>0</R22>
				</CoordinateFrame>
				<string name="Name">staff</string>
				<Content name="TextureId"><url>rbxasset://Textures\Sword128.png</url></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Script" referent="RBX6749">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><url>http://www.roblox.com/asset/?id=1014475</url></Content>
					<string name="Name">SwordScript</string>
					<string name="Source"></string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="LocalScript" referent="RBX6750">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><url>http://www.roblox.com/asset/?id=1014476</url></Content>
					<string name="Name">Local Gui</string>
					<string name="Source"></string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
		</Item>
		<Item class="Model" referent="RBX6751">
			<Properties>
				<token name="Controller">7</token>
				<bool name="ControllerFlagShown">true</bool>
				<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">Staff:the parking gerage is to the left</string>
				<Ref name="PrimaryPart">null</Ref>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Humanoid" referent="RBX6752">
				<Properties>
					<float name="Health">0</float>
					<bool name="Jump">false</bool>
					<float name="MaxHealth">100</float>
					<string name="Name">Humanoid</string>
					<bool name="Sit">false</bool>
					<bool name="Strafe">false</bool>
					<Vector3 name="TargetPoint">
						<X>0</X>
						<Y>0</Y>
						<Z>0</Z>
					</Vector3>
					<Vector3 name="WalkDirection">
						<X>0</X>
						<Y>0</Y>
						<Z>0</Z>
					</Vector3>
					<float name="WalkRotationalVelocity">0</float>
					<Ref name="WalkToPart">null</Ref>
					<Vector3 name="WalkToPoint">
						<X>0</X>
						<Y>0</Y>
						<Z>0</Z>
					</Vector3>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
		</Item>
		<Item class="Tool" referent="RBX6753">
			<Properties>
				<int name="ActivationState">0</int>
				<int name="BackendToolState">2</int>
				<bool name="Enabled">true</bool>
				<CoordinateFrame name="Grip">
					<X>0</X>
					<Y>0.400000006</Y>
					<Z>0.5</Z>
					<R00>1</R00>
					<R01>0</R01>
					<R02>-0</R02>
					<R10>0</R10>
					<R11>0</R11>
					<R12>1</R12>
					<R20>0</R20>
					<R21>-1</R21>
					<R22>-0</R22>
				</CoordinateFrame>
				<string name="Name">AK47</string>
				<Content name="TextureId"><null></null></Content>
				<bool name="archivable">true</bool>
			</Properties>
			<Item class="Script" referent="RBX6754">
				<Properties>
					<bool name="Disabled">true</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">BrickCleanup</string>
					<string name="Source">-- this script removes its parent from the workspace after 24 seconds

wait(1)
script.Parent.Parent = nil</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX6755">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Paintball</string>
					<string name="Source">ball = script.Parent
damage = 2.75



function onTouched(hit)
	local humanoid = hit.Parent:findFirstChild(&quot;Humanoid&quot;)
	-- make a splat
	--for i=1,3 do
	--	local s = Instance.new(&quot;Part&quot;)
	--	s.Shape = 1 -- block
	--	s.formFactor = 2 -- plate
	--	s.Size = Vector3.new(1,.4,1)
	--	s.BrickColor = ball.BrickColor
	--	local v = Vector3.new(math.random(-1,1), math.random(0,1), math.random(-1,1))
	--	s.Velocity = 15 * v--15
	--	s.CFrame = CFrame.new(ball.Position + v, v)
	---	ball.BrickCleanup:clone().Parent = s
	--	s.BrickCleanup.Disabled = false
	--	s.Parent = game.Workspace
	--	
	--end
	

	if humanoid ~= nil then
		tagHumanoid(humanoid)
		humanoid.Health = humanoid.Health - damage
		wait(2)
		untagHumanoid(humanoid)
	end

	connection:disconnect()
	ball.Parent = nil
end

function tagHumanoid(humanoid)
	-- todo: make tag expire
	local tag = ball:findFirstChild(&quot;creator&quot;)
	if tag ~= nil then
		local new_tag = tag:clone()
		new_tag.Parent = humanoid
	end
end


function untagHumanoid(humanoid)
	if humanoid ~= nil then
		local tag = humanoid:findFirstChild(&quot;creator&quot;)
		if tag ~= nil then
			tag.Parent = nil
		end
	end
end

connection = ball.Touched:connect(onTouched)

wait(0.8)
ball.Parent = nil
</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX6756">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">PaintballShooter</string>
					<string name="Source">Tool = script.Parent

colors = {199}

function fire(v)

	Tool.Handle.Fire:play()
	

	local vCharacter = Tool
	local vPlayer = game.Players:playerFromCharacter(vCharacter)

	local missile = Instance.new(&quot;Part&quot;)

        

	local spawnPos = vCharacter.Handle.Position
	


	spawnPos  = spawnPos + (v * 5)

	missile.Position = spawnPos
	missile.Size = Vector3.new(0.2,0.2,0.2)
	missile.Velocity = v * 500
	missile.BrickColor = BrickColor.new(colors[math.random(1, #colors)])
	missile.Shape = 0
	missile.BottomSurface = 0
	missile.TopSurface = 0
	missile.Name = &quot;Paintball&quot;
	missile.Elasticity = 0
	missile.Reflectance = 0
	missile.Friction = 1

	local force = Instance.new(&quot;BodyForce&quot;)
	force.force = Vector3.new(0,220,0)
	force.Parent = missile
	
	Tool.BrickCleanup:clone().Parent = missile

	local new_script = script.Parent.Paintball:clone()
	new_script.Disabled = false
	new_script.Parent = missile

	local creator_tag = Instance.new(&quot;ObjectValue&quot;)
	creator_tag.Value = vPlayer
	creator_tag.Name = &quot;creator&quot;
	creator_tag.Parent = missile
	


	missile.Parent = game.Workspace
	--wait(0.05)
	--fire(
	

end


function check(en)
---------------------------------------Function start here.
if (Tool.Enabled == false) then
return false
end--end for if!
-------------------------------
if (Tool.Enabled == true) then
return true
end
---------------------------------------Function end here.
end


Tool.Enabled = true
function onActivated()

	if not Tool.Enabled then
		return
	end

	--Tool.Enabled = false

	local character = Tool.Parent;
	local humanoid = character.Humanoid
	if humanoid == nil then
		print(&quot;Humanoid not found&quot;)
		return 
	end

	local targetPos = humanoid.TargetPoint
	local lookAt = (targetPos - character.Head.Position).unit
	
	if (check()) then
	fire(lookAt)
	wait(0.1)
	onActivated()
	end
	return

	--Tool.Enabled = true
end


script.Parent.Activated:connect(onActivated)
</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Script" referent="RBX6757">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">WeldScript</string>
					<string name="Source">local w1 = Instance.new(&quot;Weld&quot;)
w1.Parent = script.Parent.Handle
w1.Part0 = w1.Parent
w1.Part1 = script.Parent.Handle2w1.C1 = CFrame.new(-0, 1.5, 0)
local w2 = Instance.new(&quot;Weld&quot;)
w2.Parent = script.Parent.Handle
w2.Part0 = w2.Parent
w2.Part1 = script.Parent.Handle3
w2.C1 = CFrame.new(-0, 2.5, -0.2)

local w3 = Instance.new(&quot;Weld&quot;)
w3.Parent = script.Parent.Handle
w3.Part0 = w3.Parent
w3.Part1 = script.Parent.Handle4
w3.C1 = CFrame.new(-0, 2.3, 0.3)

local w4 = Instance.new(&quot;Weld&quot;)
w4.Parent = script.Parent.Handle
w4.Part0 = w4.Parent
w4.Part1 = script.Parent.Handle5
w4.C1 = CFrame.fromEulerAnglesXYZ(0.8, 0, 0) * CFrame.new(0, 2.8, 0.1)

local w5 = Instance.new(&quot;Weld&quot;)
w5.Parent = script.Parent.Handle
w5.Part0 = w5.Parent
w5.Part1 = script.Parent.Handle6
w5.C1 = CFrame.new(-0, 3.5, 0.1)

local w6 = Instance.new(&quot;Weld&quot;)
w6.Parent = script.Parent.Handle
w6.Part0 = w6.Parent
w6.Part1 = script.Parent.Handle7
w6.C1 = CFrame.fromEulerAnglesXYZ(-0.5, 0, 0) * CFrame.new(0, 0.7, -0.9)

local w7 = Instance.new(&quot;Weld&quot;)
w7.Parent = script.Parent.Handle
w7.Part0 = w7.Parent
w7.Part1 = script.Parent.Handle8
w7.C1 = CFrame.fromEulerAnglesXYZ(0.3, 0, 0) * CFrame.new(0, -0.8, -0.9)
local w8 = Instance.new(&quot;Weld&quot;)
w8.Parent = script.Parent.Handle
w8.Part0 = w8.Parent
w8.Part1 = script.Parent.Handle9
w8.C1 = CFrame.new(-0, -1.9, 0.22)
local w9 = Instance.new(&quot;Weld&quot;)
w9.Parent = script.Parent.Handle
w9.Part0 = w9.Parent
w9.Part1 = script.Parent.Handle10
w9.C1 = CFrame.fromEulerAnglesXYZ(3.2, 0, 0) * CFrame.new(0, -2.3, -0.2)
</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="LocalScript" referent="RBX6758">
				<Properties>
					<bool name="Disabled">false</bool>
					<Content name="LinkedSource"><null></null></Content>
					<string name="Name">Local Gui</string>
					<string name="Source">local Tool = script.Parent;

enabled = true
function onButton1Down(mouse)
	if not enabled then
		return
	end

	enabled = true
	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;

	--wait(.5)
	--mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	--enabled = true
	--mouse.Button1Up:connect(function() onButton1Up(mouse) end)

end


function onButton1Up(mouse)
enabled = false
Tool.Enabled = false
mouse.Icon = &quot;rbxasset://textures\\GunWaitCursor.png&quot;
wait(2.2)
mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
enabled = true
Tool.Enabled = true
end

function onEquippedLocal(mouse)

	if mouse == nil then
		print(&quot;Mouse not found&quot;)
		return 
	end

	mouse.Icon = &quot;rbxasset://textures\\GunCursor.png&quot;
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)	
	mouse.Button1Up:connect(function() onButton1Up(mouse)end)
end


Tool.Equipped:connect(onEquippedLocal)
</string>
					<bool name="archivable">true</bool>
				</Properties>
			</Item>
			<Item class="Part" referent="RBX6759">
				<Properties>
					<bool name="Anchored">false</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">38</int>
					<CoordinateFrame name="CFrame">
						<X>2.20030379</X>
						<Y>2.04698443</Y>
						<Z>41.9913025</Z>
						<R00>0.485943168</R00>
						<R01>0.873911679</R01>
						<R02>-0.0117341597</R02>
						<R10>-0.184531897</R10>
						<R11>0.0894681066</R11>
						<R12>-0.978745878</R12>
						<R20>-0.854287565</R20>
						<R21>0.477780223</R21>
						<R22>0.204740956</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">0</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">false</bool>
					<string name="Name">Handle2</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>27.0207958</X>
						<Y>-16.5881214</Y>
						<Z>15.2361145</Z>
					</Vector3>
					<float name="TopParamA">-0.5</float>
					<float name="TopParamB">0.5</float>
					<token name="TopSurface">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0</float>
					<Vector3 name="Velocity">
						<X>7.25391674</X>
						<Y>19.9342384</Y>
						<Z>27.9905739</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>1</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX6760">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">6</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.699999988</X>
							<Y>1</Y>
							<Z>0.899999976</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX6761">
				<Properties>
					<bool name="Anchored">false</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">26</int>
					<CoordinateFrame name="CFrame">
						<X>66.7097244</X>
						<Y>2.01075482</Y>
						<Z>47.8662186</Z>
						<R00>-0.640734792</R00>
						<R01>0.427556694</R01>
						<R02>0.637694359</R02>
						<R10>0.318507761</R10>
						<R11>0.903769314</R11>
						<R12>-0.285926282</R12>
						<R20>-0.698578238</R20>
						<R21>0.0199076589</R21>
						<R22>-0.715256512</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">0</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">false</bool>
					<string name="Name">Handle4</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>11.8930511</X>
						<Y>222.55014</Y>
						<Z>-12.5688028</Z>
					</Vector3>
					<float name="TopParamA">-0.5</float>
					<float name="TopParamB">0.5</float>
					<token name="TopSurface">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0</float>
					<Vector3 name="Velocity">
						<X>138.019394</X>
						<Y>-40.1147728</Y>
						<Z>44.1767349</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>1</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX6762">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.300000012</X>
							<Y>1</Y>
							<Z>0.899999976</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX6763">
				<Properties>
					<bool name="Anchored">false</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">26</int>
					<CoordinateFrame name="CFrame">
						<X>-15.9448366</X>
						<Y>47.845562</Y>
						<Z>18.1794834</Z>
						<R00>-0.141063198</R00>
						<R01>-0.783697307</R01>
						<R02>-0.604912877</R02>
						<R10>-0.431836039</R10>
						<R11>-0.50112021</R11>
						<R12>0.749930739</R12>
						<R20>-0.890852809</R20>
						<R21>0.367010832</R21>
						<R22>-0.267739087</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">0</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">false</bool>
					<string name="Name">Handle3</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>-22.372797</X>
						<Y>-30.3598061</Y>
						<Z>4.3748436</Z>
					</Vector3>
					<float name="TopParamA">-0.5</float>
					<float name="TopParamB">0.5</float>
					<token name="TopSurface">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0</float>
					<Vector3 name="Velocity">
						<X>-32.0031242</X>
						<Y>41.5340691</Y>
						<Z>-35.7936401</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>2</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX6764">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.5</X>
							<Y>1.29999995</Y>
							<Z>0.899999976</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX6765">
				<Properties>
					<bool name="Anchored">false</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">26</int>
					<CoordinateFrame name="CFrame">
						<X>27.5631046</X>
						<Y>220.176193</Y>
						<Z>61.8696098</Z>
						<R00>0.983863473</R00>
						<R01>0.178187355</R01>
						<R02>0.0161834545</R02>
						<R10>0.12134508</R10>
						<R11>-0.598057151</R11>
						<R12>-0.792213917</R12>
						<R20>-0.131483883</R20>
						<R21>0.781394124</R21>
						<R22>-0.610028744</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">0</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">false</bool>
					<string name="Name">Handle5</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>-129.443985</X>
						<Y>263.505615</Y>
						<Z>216.874146</Z>
					</Vector3>
					<float name="TopParamA">-0.5</float>
					<float name="TopParamB">0.5</float>
					<token name="TopSurface">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0</float>
					<Vector3 name="Velocity">
						<X>52.2085648</X>
						<Y>366.905579</Y>
						<Z>49.8366585</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>1</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX6766">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">0</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.300000012</X>
							<Y>0.699999988</Y>
							<Z>0.899999976</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX6767">
				<Properties>
					<bool name="Anchored">false</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">26</int>
					<CoordinateFrame name="CFrame">
						<X>-0.867697418</X>
						<Y>10.535326</Y>
						<Z>157.974442</Z>
						<R00>-0.486893743</R00>
						<R01>0.785485923</R01>
						<R02>0.382029265</R02>
						<R10>0.866071045</R10>
						<R11>0.490923554</R11>
						<R12>0.094419457</R12>
						<R20>-0.113382012</R20>
						<R21>0.376836717</R21>
						<R22>-0.919314265</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">0</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">false</bool>
					<string name="Name">Handle6</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>255.168762</X>
						<Y>-11.6211424</Y>
						<Z>-156.702255</Z>
					</Vector3>
					<float name="TopParamA">-0.5</float>
					<float name="TopParamB">0.5</float>
					<token name="TopSurface">0</token>
					<token name="TopSurfaceInput">0</token>
					<float name="Transparency">0</float>
					<Vector3 name="Velocity">
						<X>-0.88904798</X>
						<Y>-29.2362938</Y>
						<Z>234.365463</Z>
					</Vector3>
					<bool name="archivable">true</bool>
					<token name="shape">1</token>
					<Vector3 name="size">
						<X>1</X>
						<Y>1</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX6768">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.100000001</X>
							<Y>0.5</Y>
							<Z>0.5</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
			<Item class="Part" referent="RBX6769">
				<Properties>
					<bool name="Anchored">false</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">23</int>
					<CoordinateFrame name="CFrame">
						<X>0.460154831</X>
						<Y>0.899693191</Y>
						<Z>31.4586487</Z>
						<R00>-0.994334996</R00>
						<R01>-0.106287926</R01>
						<R02>0.000719452044</R02>
						<R10>0.000772988715</R10>
						<R11>-0.000462419906</R11>
						<R12>0.999999523</R12>
						<R20>-0.106287554</R20>
						<R21>0.994335175</R21>
						<R22>0.000542110531</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">0</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">false</bool>
					<string name="Name">Handle10</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">0</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>1</X>
						<Y>1</Y>
						<Z>1</Z>
					</Vector3>
				</Properties>
				<Item class="SpecialMesh" referent="RBX6770">
					<Properties>
						<Content name="MeshId"><null></null></Content>
						<token name="MeshType">2</token>
						<string name="Name">Mesh</string>
						<Vector3 name="Scale">
							<X>0.300000012</X>
							<Y>1.5</Y>
							<Z>1</Z>
						</Vector3>
						<Content name="TextureId"><null></null></Content>
						<Vector3 name="VertexColor">
							<X>1</X>
							<Y>1</Y>
							<Z>1</Z>
						</Vector3>
						<bool name="archivable">true</bool>
					</Properties>
				</Item>
			</Item>
		</Item>
	</Item>
	<Item class="RunService" referent="RBX6771">
		<Properties>
			<string name="Name">Run Service</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<External>RBX6772</External>
	<External>RBX6773</External>
	<Item class="Players" referent="RBX6774">
		<Properties>
			<int name="MaxPlayers">8</int>
			<string name="Name">Players</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<Item class="StarterPack" referent="RBX6775">
		<Properties>
			<string name="Name">StarterPack</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<Item class="SoundService" referent="RBX6776">
		<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>RBX6777</External>
		<External>RBX6778</External>
		<External>RBX6779</External>
		<External>RBX6780</External>
		<External>RBX6781</External>
		<External>RBX6782</External>
		<External>RBX6783</External>
		<External>RBX6784</External>
		<External>RBX6785</External>
		<External>RBX6786</External>
		<External>RBX6787</External>
		<External>RBX6788</External>
		<External>RBX6789</External>
		<External>RBX6790</External>
	</Item>
	<Item class="ContentProvider" referent="RBX6791">
		<Properties>
			<string name="Name">Instance</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<Item class="PhysicsService" referent="RBX6792">
		<Properties>
			<string name="Name">PhysicsService</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<Item class="Selection" referent="RBX6793">
		<Properties>
			<string name="Name">Selection</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<Item class="Lighting" referent="RBX6794">
		<Properties>
			<Color3 name="Ambient">4286677377</Color3>
			<float name="Brightness">1</float>
			<Color3 name="ColorShift_Bottom">4278190080</Color3>
			<Color3 name="ColorShift_Top">4278190080</Color3>
			<float name="GeographicLatitude">41.7332993</float>
			<string name="Name">Lighting</string>
			<Color3 name="ShadowColor">4290032825</Color3>
			<string name="TimeOfDay">14:00:00</string>
			<bool name="archivable">true</bool>
		</Properties>
		<Item class="Sky" referent="RBX6795">
			<Properties>
				<bool name="CelestialBodiesShown">true</bool>
				<string name="Name">Sky</string>
				<Content name="SkyboxBk"><url>http://www.roblox.com/asset/?version=1&amp;id=1327358</url></Content>
				<Content name="SkyboxDn"><url>http://www.roblox.com/asset/?version=1&amp;id=1327359</url></Content>
				<Content name="SkyboxFt"><url>http://www.roblox.com/asset/?version=1&amp;id=1327355</url></Content>
				<Content name="SkyboxLf"><url>http://www.roblox.com/asset/?version=1&amp;id=1327357</url></Content>
				<Content name="SkyboxRt"><url>http://www.roblox.com/asset/?version=1&amp;id=1327356</url></Content>
				<Content name="SkyboxUp"><url>http://www.roblox.com/asset/?version=1&amp;id=1327360</url></Content>
				<int name="StarCount">3000</int>
				<bool name="archivable">true</bool>
			</Properties>
		</Item>
	</Item>
	<Item class="ControllerService" referent="RBX6796">
		<Properties>
			<string name="Name">Instance</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<Item class="ChangeHistoryService" referent="RBX6797">
		<Properties>
			<string name="Name">ChangeHistoryService</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<Item class="Timer" referent="RBX6798">
		<Properties>
			<string name="Name">Instance</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<Item class="Geometry" referent="RBX6799">
		<Properties>
			<string name="Name">Geometry</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<External>RBX6800</External>
</roblox>